Skip to content

Commit

Permalink
Merge pull request #2003 from habnux/main
Browse files Browse the repository at this point in the history
Bug: Needs to be a list of ProjectGroup
  • Loading branch information
svanharmelen committed Sep 2, 2024
2 parents fa3f0b2 + a43dcb2 commit 6b15a3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ type ListProjectInvidedGroupOptions struct {
//
// GitLab API docs:
// https://docs.gitlab.com/ee/api/projects.html#list-a-projects-invited-groups
func (s *ProjectsService) ListProjectsInvitedGroups(pid interface{}, opt *ListProjectInvidedGroupOptions, options ...RequestOptionFunc) (*ProjectGroup, *Response, error) {
func (s *ProjectsService) ListProjectsInvitedGroups(pid interface{}, opt *ListProjectInvidedGroupOptions, options ...RequestOptionFunc) ([]*ProjectGroup, *Response, error) {
project, err := parseID(pid)
if err != nil {
return nil, nil, err
Expand All @@ -1073,8 +1073,8 @@ func (s *ProjectsService) ListProjectsInvitedGroups(pid interface{}, opt *ListPr
return nil, nil, err
}

pg := new(ProjectGroup)
resp, err := s.client.Do(req, pg)
var pg []*ProjectGroup
resp, err := s.client.Do(req, &pg)
if err != nil {
return nil, resp, err
}
Expand Down

0 comments on commit 6b15a3b

Please sign in to comment.