This commit is contained in:
6543 2021-05-05 11:05:12 +02:00
parent 46bc149777
commit 566806b3b7
Signed by: 6543
GPG Key ID: C99B82E40B027BAE
1 changed files with 4 additions and 3 deletions

View File

@ -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
}