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

Commit

Permalink
Use capital ID to follow go standards https://go.dev/wiki/CodeReviewC…
Browse files Browse the repository at this point in the history
  • Loading branch information
dfredell committed Jan 18, 2024
1 parent 68e79f2 commit 7af6bec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions group_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ type AddGroupMemberOptions struct {
UserID *int `url:"user_id,omitempty" json:"user_id,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"`
MemberRoleID *int `url:"member_role_id,omitempty" json:"member_role_id,omitempty"`
}

// GetGroupMember gets a member of a group.
Expand Down Expand Up @@ -308,7 +308,7 @@ func (s *GroupMembersService) DeleteShareWithGroup(gid interface{}, groupID int,
type EditGroupMemberOptions struct {
AccessLevel *AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"`
ExpiresAt *string `url:"expires_at,omitempty" json:"expires_at,omitempty"`
MemberRoleId *int `url:"member_role_id,omitempty" json:"member_role_id,omitempty"`
MemberRoleID *int `url:"member_role_id,omitempty" json:"member_role_id,omitempty"`
}

// EditGroupMember updates a member of a group.
Expand Down
4 changes: 2 additions & 2 deletions project_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ type AddProjectMemberOptions struct {
UserID interface{} `url:"user_id,omitempty" json:"user_id,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"`
MemberRoleID *int `url:"member_role_id,omitempty" json:"member_role_id,omitempty"`
}

// AddProjectMember adds a user to a project team. This is an idempotent
Expand Down Expand Up @@ -190,7 +190,7 @@ func (s *ProjectMembersService) AddProjectMember(pid interface{}, opt *AddProjec
type EditProjectMemberOptions struct {
AccessLevel *AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"`
ExpiresAt *string `url:"expires_at,omitempty" json:"expires_at,omitempty"`
MemberRoleId *int `url:"member_role_id,omitempty" json:"member_role_id,omitempty"`
MemberRoleID *int `url:"member_role_id,omitempty" json:"member_role_id,omitempty"`
}

// EditProjectMember updates a project team member to a specified access level..
Expand Down

0 comments on commit 7af6bec

Please sign in to comment.