@@ -32,7 +32,7 @@ type CustomRepoRoles struct {
32
32
//
33
33
// GitHub API docs: https://docs.github.com/en/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization
34
34
func (s * OrganizationsService ) ListCustomRepoRoles (ctx context.Context , org string ) (* OrganizationCustomRepoRoles , * Response , error ) {
35
- u := fmt .Sprintf ("orgs/%v/custom_roles " , org )
35
+ u := fmt .Sprintf ("orgs/%v/custom-repository-roles " , org )
36
36
37
37
req , err := s .client .NewRequest ("GET" , u , nil )
38
38
if err != nil {
@@ -59,9 +59,9 @@ type CreateOrUpdateCustomRoleOptions struct {
59
59
// CreateCustomRepoRole creates a custom repository role in this organization.
60
60
// In order to create custom repository roles in an organization, the authenticated user must be an organization owner.
61
61
//
62
- // GitHub API docs: https://docs.github.com/en/rest/orgs/custom-roles#create-a-custom-role
62
+ // GitHub API docs: https://docs.github.com/en/rest/orgs/custom-roles#create-a-custom-repository- role
63
63
func (s * OrganizationsService ) CreateCustomRepoRole (ctx context.Context , org string , opts * CreateOrUpdateCustomRoleOptions ) (* CustomRepoRoles , * Response , error ) {
64
- u := fmt .Sprintf ("orgs/%v/custom_roles " , org )
64
+ u := fmt .Sprintf ("orgs/%v/custom-repository-roles " , org )
65
65
66
66
req , err := s .client .NewRequest ("POST" , u , opts )
67
67
if err != nil {
@@ -80,9 +80,9 @@ func (s *OrganizationsService) CreateCustomRepoRole(ctx context.Context, org str
80
80
// UpdateCustomRepoRole updates a custom repository role in this organization.
81
81
// In order to update custom repository roles in an organization, the authenticated user must be an organization owner.
82
82
//
83
- // GitHub API docs: https://docs.github.com/en/rest/orgs/custom-roles#update-a-custom-role
83
+ // GitHub API docs: https://docs.github.com/en/rest/orgs/custom-roles#update-a-custom-repository- role
84
84
func (s * OrganizationsService ) UpdateCustomRepoRole (ctx context.Context , org , roleID string , opts * CreateOrUpdateCustomRoleOptions ) (* CustomRepoRoles , * Response , error ) {
85
- u := fmt .Sprintf ("orgs/%v/custom_roles /%v" , org , roleID )
85
+ u := fmt .Sprintf ("orgs/%v/custom-repository-roles /%v" , org , roleID )
86
86
87
87
req , err := s .client .NewRequest ("PATCH" , u , opts )
88
88
if err != nil {
@@ -101,9 +101,9 @@ func (s *OrganizationsService) UpdateCustomRepoRole(ctx context.Context, org, ro
101
101
// DeleteCustomRepoRole deletes an existing custom repository role in this organization.
102
102
// In order to delete custom repository roles in an organization, the authenticated user must be an organization owner.
103
103
//
104
- // GitHub API docs: https://docs.github.com/en/rest/orgs/custom-roles#delete-a-custom-role
104
+ // GitHub API docs: https://docs.github.com/en/rest/orgs/custom-roles#delete-a-custom-repository- role
105
105
func (s * OrganizationsService ) DeleteCustomRepoRole (ctx context.Context , org , roleID string ) (* Response , error ) {
106
- u := fmt .Sprintf ("orgs/%v/custom_roles /%v" , org , roleID )
106
+ u := fmt .Sprintf ("orgs/%v/custom-repository-roles /%v" , org , roleID )
107
107
108
108
req , err := s .client .NewRequest ("DELETE" , u , nil )
109
109
if err != nil {
0 commit comments