Skip to content

Commit

Permalink
Allow create custom repository/organization roles without permission (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyun authored Aug 19, 2024
1 parent f5d2850 commit 3085a9c
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 3085a9c

Please sign in to comment.