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
a688802c
Commit
a688802c
authored
Feb 15, 2017
by
Ulrich Schreiner
Committed by
Sander van Harmelen
Feb 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add paging for group-projects (#129)
parent
abd6d800
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
groups.go
groups.go
+11
-2
No files found.
groups.go
View file @
a688802c
...
...
@@ -235,18 +235,27 @@ func (s *GroupsService) ListGroupMembers(gid interface{}, opt *ListGroupMembersO
return
g
,
resp
,
err
}
// ListGroupProjectsOptions represents the available ListGroupProjects()
// options.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/api/groups.html#list-a-group-s-projects
type
ListGroupProjectsOptions
struct
{
ListOptions
}
// ListGroupProjects get a list of group projects
//
// GitLab API docs:
// https://docs.gitlab.com/ce/api/groups.html#list-a-group-s-projects
func
(
s
*
GroupsService
)
ListGroupProjects
(
gid
interface
{})
([]
*
Project
,
*
Response
,
error
)
{
func
(
s
*
GroupsService
)
ListGroupProjects
(
gid
interface
{}
,
opt
*
ListGroupProjectsOptions
)
([]
*
Project
,
*
Response
,
error
)
{
group
,
err
:=
parseID
(
gid
)
if
err
!=
nil
{
return
nil
,
nil
,
err
}
u
:=
fmt
.
Sprintf
(
"groups/%s/projects"
,
group
)
req
,
err
:=
s
.
client
.
NewRequest
(
"GET"
,
u
,
nil
)
req
,
err
:=
s
.
client
.
NewRequest
(
"GET"
,
u
,
opt
)
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