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

Commit 098437b

Browse files
authored
Merge pull request #2047 from xinau/patch-1
Add username to AddGroupMemberOptions
2 parents e4b083f + a52ea87 commit 098437b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

group_members.go

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ func (s *GroupsService) ListAllGroupMembers(gid interface{}, opt *ListGroupMembe
161161
// https://docs.gitlab.com/ee/api/members.html#add-a-member-to-a-group-or-project
162162
type AddGroupMemberOptions struct {
163163
UserID *int `url:"user_id,omitempty" json:"user_id,omitempty"`
164+
Username *string `url:"username,omitempty" json:"username,omitempty"`
164165
AccessLevel *AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"`
165166
ExpiresAt *string `url:"expires_at,omitempty" json:"expires_at"`
166167
MemberRoleID *int `url:"member_role_id,omitempty" json:"member_role_id,omitempty"`

0 commit comments

Comments
 (0)