Skip to content

Commit b01926c

Browse files
committed
Updated typos in github/org_custom_roles.go
1 parent 75ab6ab commit b01926c

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

github/github-accessors.go

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/org_custom_roles.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"fmt"
1111
)
1212

13-
// OrgainizationCustomRepoRoles represents custom repository roles available in specified organization.
14-
type OrgainizationCustomRepoRoles struct {
13+
// OrganizationCustomRepoRoles represents custom repository roles available in specified organization.
14+
type OrganizationCustomRepoRoles struct {
1515
TotalCount *int `json:"total_count,omitempty"`
1616
CustomRepoRoles []*CustomRepoRoles `json:"custom_roles,omitempty"`
1717
}
@@ -28,15 +28,15 @@ type CustomRepoRoles struct {
2828
// In order to see custom repository roles in an organization, the authenticated user must be an organization owner.
2929
//
3030
// GitHub API docs: https://docs.github.com/en/rest/orgs/custom-roles
31-
func (s *OrganizationsService) ListCustomRepoRoles(ctx context.Context, org string) (*OrgainizationCustomRepoRoles, *Response, error) {
31+
func (s *OrganizationsService) ListCustomRepoRoles(ctx context.Context, org string) (*OrganizationCustomRepoRoles, *Response, error) {
3232
u := fmt.Sprintf("organizations/%v/custom_roles", org)
3333

3434
req, err := s.client.NewRequest("GET", u, nil)
3535
if err != nil {
3636
return nil, nil, err
3737
}
3838

39-
customRepoRoles := new(OrgainizationCustomRepoRoles)
39+
customRepoRoles := new(OrganizationCustomRepoRoles)
4040
resp, err := s.client.Do(ctx, req, customRepoRoles)
4141
if err != nil {
4242
return nil, resp, err

github/org_custom_roles_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func TestOrganizationsService_ListCustomRepoRoles(t *testing.T) {
2929
t.Errorf("Organizations.ListCustomRepoRoles returned error: %v", err)
3030
}
3131

32-
want := &OrgainizationCustomRepoRoles{TotalCount: Int(1), CustomRepoRoles: []*CustomRepoRoles{{ID: Int64(1), Name: String("Developer")}}}
32+
want := &OrganizationCustomRepoRoles{TotalCount: Int(1), CustomRepoRoles: []*CustomRepoRoles{{ID: Int64(1), Name: String("Developer")}}}
3333
if !cmp.Equal(apps, want) {
3434
t.Errorf("Organizations.ListCustomRepoRoles returned %+v, want %+v", apps, want)
3535
}

0 commit comments

Comments
 (0)