@@ -32,7 +32,7 @@ type CustomRepoRoles struct {
3232//
3333// GitHub API docs: https://docs.github.com/en/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization
3434func (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 )
3636
3737 req , err := s .client .NewRequest ("GET" , u , nil )
3838 if err != nil {
@@ -59,9 +59,9 @@ type CreateOrUpdateCustomRoleOptions struct {
5959// CreateCustomRepoRole creates a custom repository role in this organization.
6060// In order to create custom repository roles in an organization, the authenticated user must be an organization owner.
6161//
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
6363func (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 )
6565
6666 req , err := s .client .NewRequest ("POST" , u , opts )
6767 if err != nil {
@@ -80,9 +80,9 @@ func (s *OrganizationsService) CreateCustomRepoRole(ctx context.Context, org str
8080// UpdateCustomRepoRole updates a custom repository role in this organization.
8181// In order to update custom repository roles in an organization, the authenticated user must be an organization owner.
8282//
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
8484func (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 )
8686
8787 req , err := s .client .NewRequest ("PATCH" , u , opts )
8888 if err != nil {
@@ -101,9 +101,9 @@ func (s *OrganizationsService) UpdateCustomRepoRole(ctx context.Context, org, ro
101101// DeleteCustomRepoRole deletes an existing custom repository role in this organization.
102102// In order to delete custom repository roles in an organization, the authenticated user must be an organization owner.
103103//
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
105105func (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 )
107107
108108 req , err := s .client .NewRequest ("DELETE" , u , nil )
109109 if err != nil {
0 commit comments