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 #2047 from xinau/patch-1
Browse files Browse the repository at this point in the history
Add username to AddGroupMemberOptions
  • Loading branch information
svanharmelen authored Oct 24, 2024
2 parents e4b083f + a52ea87 commit 098437b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions group_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func (s *GroupsService) ListAllGroupMembers(gid interface{}, opt *ListGroupMembe
// https://docs.gitlab.com/ee/api/members.html#add-a-member-to-a-group-or-project
type AddGroupMemberOptions struct {
UserID *int `url:"user_id,omitempty" json:"user_id,omitempty"`
Username *string `url:"username,omitempty" json:"username,omitempty"`
AccessLevel *AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"`
ExpiresAt *string `url:"expires_at,omitempty" json:"expires_at"`
MemberRoleID *int `url:"member_role_id,omitempty" json:"member_role_id,omitempty"`
Expand Down

0 comments on commit 098437b

Please sign in to comment.