Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1491 from nickshine/project-member-user-ids-option
Browse files Browse the repository at this point in the history
Add project member and group member user_ids option
  • Loading branch information
svanharmelen authored Jun 7, 2022
2 parents 86c4f8d + 0c12764 commit 2a8940c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion group_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ type GroupMember struct {
// https://docs.gitlab.com/ce/api/members.html#list-all-members-of-a-group-or-project
type ListGroupMembersOptions struct {
ListOptions
Query *string `url:"query,omitempty" json:"query,omitempty"`
Query *string `url:"query,omitempty" json:"query,omitempty"`
UserIDs *[]int `url:"user_ids[],omitempty" json:"user_ids,omitempty"`
}

// ListGroupMembers get a list of group members viewable by the authenticated
Expand Down
3 changes: 2 additions & 1 deletion project_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ type ProjectMembersService struct {
// https://docs.gitlab.com/ce/api/members.html#list-all-members-of-a-group-or-project
type ListProjectMembersOptions struct {
ListOptions
Query *string `url:"query,omitempty" json:"query,omitempty"`
Query *string `url:"query,omitempty" json:"query,omitempty"`
UserIDs *[]int `url:"user_ids[],omitempty" json:"user_ids,omitempty"`
}

// ListProjectMembers gets a list of a project's team members viewable by the
Expand Down

0 comments on commit 2a8940c

Please sign in to comment.