Skip to content

Commit

Permalink
Update github/orgs_custom_roles.go
Browse files Browse the repository at this point in the history
Co-authored-by: Glenn Lewis <[email protected]>
  • Loading branch information
felixlut and gmlewis authored Sep 22, 2024
1 parent 00a67d2 commit 62b08f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/orgs_custom_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (s *OrganizationsService) DeleteCustomOrgRole(ctx context.Context, org stri
// GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-team
//
//meta:operation PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}
func (s *OrganizationsService) AssignOrgRoleToTeam(ctx context.Context, org string, teamSlug string, roleID int64) (*Response, error) {
func (s *OrganizationsService) AssignOrgRoleToTeam(ctx context.Context, org, teamSlug string, roleID int64) (*Response, error) {
u := fmt.Sprintf("orgs/%v/organization-roles/teams/%v/%v", org, teamSlug, roleID)

req, err := s.client.NewRequest("PUT", u, nil)
Expand Down

0 comments on commit 62b08f8

Please sign in to comment.