Skip to content

Commit

Permalink
Merge pull request #11 from blue-luke/main
Browse files Browse the repository at this point in the history
feat: also including projects in sub-groups
  • Loading branch information
BrendanGalloway committed Jul 16, 2024
2 parents cb812a4 + 0be5c28 commit a94914f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (g *GitLabProject) GetID() (int, error) {
if g.Name == "" {
return 0, errors.New("insufficient information for project - name or id must be provided")
}
projSearch, _, err := g.client.Groups.ListGroupProjects(g.GroupID, &gitlab.ListGroupProjectsOptions{Search: gitlab.String(g.Name)})
projSearch, _, err := g.client.Groups.ListGroupProjects(g.GroupID, &gitlab.ListGroupProjectsOptions{Search: gitlab.String(g.Name), IncludeSubGroups: gitlab.Bool(true)})
if err != nil {
return 0, errors.New(fmt.Sprintf("could not determine group ID: %v", err))
}
Expand Down

0 comments on commit a94914f

Please sign in to comment.