next
This commit is contained in:
parent
46bc149777
commit
566806b3b7
7
main.go
7
main.go
@ -16,8 +16,8 @@ var (
|
||||
func main() {
|
||||
// default values
|
||||
var token string = "XXXXXXXXXXXXXXXXXX"
|
||||
var baseURL string = "https://gitlab.com"
|
||||
var orgName string = "scr-test"
|
||||
var baseURL string = "https://inf-git.fh-rosenheim.de"
|
||||
var orgName string = "vv-inf-sose21"
|
||||
var repoExclude string = "exclude*"
|
||||
var pullBaseBranch string = "devel*"
|
||||
|
||||
@ -64,6 +64,7 @@ func main() {
|
||||
var repoList []*gitlab.Project
|
||||
var page = 1
|
||||
for {
|
||||
fmt.Printf("Get Repo List Page %d", page)
|
||||
repos, _, err := client.Groups.ListGroupProjects(org.ID, &gitlab.ListGroupProjectsOptions{
|
||||
ListOptions: gitlab.ListOptions{PerPage: 10, Page: page},
|
||||
Archived: optBool(false),
|
||||
@ -75,7 +76,7 @@ func main() {
|
||||
|
||||
repoList = append(repoList, repos...)
|
||||
|
||||
if len(repoList) < 10 {
|
||||
if len(repos) < 10 {
|
||||
break
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user