Commit e8a1b36a authored by Sander van Harmelen's avatar Sander van Harmelen

Fixup the `Subgroups` call

parent 6ecb6066
......@@ -269,11 +269,18 @@ func (s *GroupsService) ListGroupProjects(gid interface{}, opt *ListGroupProject
return p, resp, err
}
// ListSubgroupsOptions represents the available ListSubgroupsOptions()
// options.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/api/groups.html#list-a-groups-s-subgroups
type ListSubgroupsOptions ListGroupsOptions
// ListSubgroups gets a list of subgroups for a given project.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/api/groups.html#list-project-groups
func (s *GroupsService) ListSubgroups(gid interface{}, opt *ListGroupsOptions, options ...OptionFunc) ([]*Group, *Response, error) {
// https://docs.gitlab.com/ce/api/groups.html#list-a-groups-s-subgroups
func (s *GroupsService) ListSubgroups(gid interface{}, opt *ListSubgroupsOptions, options ...OptionFunc) ([]*Group, *Response, error) {
group, err := parseID(gid)
if err != nil {
return nil, nil, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment