Skip to content

Commit 3085a9c

Browse files
authored
Allow create custom repository/organization roles without permission (#3235)
1 parent f5d2850 commit 3085a9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github/orgs_custom_roles.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ type CustomRepoRoles struct {
5353
type CreateOrUpdateOrgRoleOptions struct {
5454
Name *string `json:"name,omitempty"`
5555
Description *string `json:"description,omitempty"`
56-
Permissions []string `json:"permissions,omitempty"`
56+
Permissions []string `json:"permissions"`
5757
}
5858

5959
// CreateOrUpdateCustomRepoRoleOptions represents options required to create or update a custom repository role.
6060
type CreateOrUpdateCustomRepoRoleOptions struct {
6161
Name *string `json:"name,omitempty"`
6262
Description *string `json:"description,omitempty"`
6363
BaseRole *string `json:"base_role,omitempty"`
64-
Permissions []string `json:"permissions,omitempty"`
64+
Permissions []string `json:"permissions"`
6565
}
6666

6767
// ListRoles lists the custom roles available in this organization.

0 commit comments

Comments
 (0)