From a52ea87241f16c9f3494f962dfad902c54b19c6f Mon Sep 17 00:00:00 2001 From: Felix Ehrenpfort Date: Thu, 24 Oct 2024 17:46:36 +0200 Subject: [PATCH] Add username to AddGroupMemberOptions --- group_members.go | 1 + 1 file changed, 1 insertion(+) diff --git a/group_members.go b/group_members.go index ec069fec7..109b2056f 100644 --- a/group_members.go +++ b/group_members.go @@ -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"`