From da56a8b2b36c2d99eafdfb8f4eb6209ac53402b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=ADyun?= Date: Fri, 16 Aug 2024 09:43:34 +0200 Subject: [PATCH] Allow create/update custom repository/organization roles without permissions #3226 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andríyun --- github/orgs_custom_roles.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/orgs_custom_roles.go b/github/orgs_custom_roles.go index dcbd79efa7..ca0c6d7bcb 100644 --- a/github/orgs_custom_roles.go +++ b/github/orgs_custom_roles.go @@ -53,7 +53,7 @@ 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. @@ -61,7 +61,7 @@ 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.