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

View File

@ -16,8 +16,8 @@ var (
func main() { func main() {
// default values // default values
var token string = "XXXXXXXXXXXXXXXXXX" var token string = "XXXXXXXXXXXXXXXXXX"
var baseURL string = "https://gitlab.com" var baseURL string = "https://inf-git.fh-rosenheim.de"
var orgName string = "scr-test" var orgName string = "vv-inf-sose21"
var repoExclude string = "exclude*" var repoExclude string = "exclude*"
var pullBaseBranch string = "devel*" var pullBaseBranch string = "devel*"


@ -64,6 +64,7 @@ func main() {
var repoList []*gitlab.Project var repoList []*gitlab.Project
var page = 1 var page = 1
for { for {
fmt.Printf("Get Repo List Page %d", page)
repos, _, err := client.Groups.ListGroupProjects(org.ID, &gitlab.ListGroupProjectsOptions{ repos, _, err := client.Groups.ListGroupProjects(org.ID, &gitlab.ListGroupProjectsOptions{
ListOptions: gitlab.ListOptions{PerPage: 10, Page: page}, ListOptions: gitlab.ListOptions{PerPage: 10, Page: page},
Archived: optBool(false), Archived: optBool(false),
@ -75,7 +76,7 @@ func main() {


repoList = append(repoList, repos...) repoList = append(repoList, repos...)


if len(repoList) < 10 { if len(repos) < 10 {
break break
} }