next const
This commit is contained in:
parent
227a1dae55
commit
19019aa665
7
main.go
7
main.go
@ -30,7 +30,10 @@ type pullCache struct {
|
|||||||
webURL string
|
webURL string
|
||||||
}
|
}
|
||||||
|
|
||||||
const perPage = 10
|
const (
|
||||||
|
perPage = 10
|
||||||
|
waitSecForMerge = 3
|
||||||
|
)
|
||||||
|
|
||||||
func loadCache() (cache *Cache) {
|
func loadCache() (cache *Cache) {
|
||||||
// default values
|
// default values
|
||||||
@ -142,7 +145,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("\n\nwait 3sec for gitlab before merge created pulls\n")
|
fmt.Printf("\n\nwait 3sec for gitlab before merge created pulls\n")
|
||||||
time.Sleep(3 * time.Second)
|
time.Sleep(waitSecForMerge * time.Second)
|
||||||
mergePulls(client, pullsToMergeCache)
|
mergePulls(client, pullsToMergeCache)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user