bugfix: fix subgroup not appearing when authenticated
This commit is contained in:
parent
87bc3976b1
commit
6770c68955
|
@ -54,8 +54,10 @@ func (c *gitlabClient) FetchGroupContent(group *Group) (*GroupContent, error) {
|
||||||
ListGroupsOpt := &gitlab.ListSubgroupsOptions{
|
ListGroupsOpt := &gitlab.ListSubgroupsOptions{
|
||||||
ListOptions: gitlab.ListOptions{
|
ListOptions: gitlab.ListOptions{
|
||||||
Page: 1,
|
Page: 1,
|
||||||
PerPage: 1000,
|
PerPage: 100,
|
||||||
}}
|
},
|
||||||
|
AllAvailable: gitlab.Bool(true),
|
||||||
|
}
|
||||||
for {
|
for {
|
||||||
gitlabGroups, response, err := c.client.Groups.ListSubgroups(group.ID, ListGroupsOpt)
|
gitlabGroups, response, err := c.client.Groups.ListSubgroups(group.ID, ListGroupsOpt)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -76,7 +78,7 @@ func (c *gitlabClient) FetchGroupContent(group *Group) (*GroupContent, error) {
|
||||||
listProjectOpt := &gitlab.ListGroupProjectsOptions{
|
listProjectOpt := &gitlab.ListGroupProjectsOptions{
|
||||||
ListOptions: gitlab.ListOptions{
|
ListOptions: gitlab.ListOptions{
|
||||||
Page: 1,
|
Page: 1,
|
||||||
PerPage: 1000,
|
PerPage: 100,
|
||||||
}}
|
}}
|
||||||
for {
|
for {
|
||||||
gitlabProjects, response, err := c.client.Groups.ListGroupProjects(group.ID, listProjectOpt)
|
gitlabProjects, response, err := c.client.Groups.ListGroupProjects(group.ID, listProjectOpt)
|
||||||
|
|
|
@ -62,7 +62,7 @@ func (c *gitlabClient) FetchUserContent(user *User) (*UserContent, error) {
|
||||||
listProjectOpt := &gitlab.ListProjectsOptions{
|
listProjectOpt := &gitlab.ListProjectsOptions{
|
||||||
ListOptions: gitlab.ListOptions{
|
ListOptions: gitlab.ListOptions{
|
||||||
Page: 1,
|
Page: 1,
|
||||||
PerPage: 1000,
|
PerPage: 100,
|
||||||
}}
|
}}
|
||||||
for {
|
for {
|
||||||
gitlabProjects, response, err := c.client.Projects.ListUserProjects(user.ID, listProjectOpt)
|
gitlabProjects, response, err := c.client.Projects.ListUserProjects(user.ID, listProjectOpt)
|
||||||
|
|
Loading…
Reference in New Issue