Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
e8a1b36a
Commit
e8a1b36a
authored
Jan 29, 2018
by
Sander van Harmelen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup the `Subgroups` call
parent
6ecb6066
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
groups.go
groups.go
+9
-2
No files found.
groups.go
View file @
e8a1b36a
...
...
@@ -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
*
List
G
roupsOptions
,
options
...
OptionFunc
)
([]
*
Group
,
*
Response
,
error
)
{
// https://docs.gitlab.com/ce/api/groups.html#list-
a-groups-s-sub
groups
func
(
s
*
GroupsService
)
ListSubgroups
(
gid
interface
{},
opt
*
List
Subg
roupsOptions
,
options
...
OptionFunc
)
([]
*
Group
,
*
Response
,
error
)
{
group
,
err
:=
parseID
(
gid
)
if
err
!=
nil
{
return
nil
,
nil
,
err
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment