Skip to content

Commit

Permalink
Allow create/update custom repository/organization roles without perm…
Browse files Browse the repository at this point in the history
…issions google#3226

Signed-off-by: Andríyun <[email protected]>
  • Loading branch information
Andríyun committed Aug 16, 2024
1 parent f5d2850 commit da56a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions github/orgs_custom_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ type CustomRepoRoles struct {
type CreateOrUpdateOrgRoleOptions struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Permissions []string `json:"permissions,omitempty"`
Permissions []string `json:"permissions"`
}

// CreateOrUpdateCustomRepoRoleOptions represents options required to create or update a custom repository role.
type CreateOrUpdateCustomRepoRoleOptions struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
BaseRole *string `json:"base_role,omitempty"`
Permissions []string `json:"permissions,omitempty"`
Permissions []string `json:"permissions"`
}

// ListRoles lists the custom roles available in this organization.
Expand Down

0 comments on commit da56a8b

Please sign in to comment.