diff --git a/github/checks.go b/github/checks.go index d39cfa5363b..dcd661aa5e1 100644 --- a/github/checks.go +++ b/github/checks.go @@ -433,7 +433,7 @@ func (s *ChecksService) SetCheckSuitePreferences(ctx context.Context, owner, rep return checkSuitePrefResults, resp, nil } -// CreateCheckSuiteOptions sets up parameters to manually create a check suites. +// CreateCheckSuiteOptions sets up parameters to manually create a check suite. type CreateCheckSuiteOptions struct { HeadSHA string `json:"head_sha"` // The sha of the head commit. (Required.) HeadBranch *string `json:"head_branch,omitempty"` // The name of the head branch where the code changes are implemented. diff --git a/github/gen-iterators.go b/github/gen-iterators.go index ea1399edacb..d7d11421f7e 100644 --- a/github/gen-iterators.go +++ b/github/gen-iterators.go @@ -296,7 +296,7 @@ func (t *templateData) processMethods(f *ast.File) error { continue } - methodInfo, ok := t.isMethodIteratable(fd) + methodInfo, ok := t.isMethodIterable(fd) if !ok { continue } @@ -313,7 +313,7 @@ func (t *templateData) processMethods(f *ast.File) error { return nil } -func (t *templateData) isMethodIteratable(fd *ast.FuncDecl) (*methodInfo, bool) { +func (t *templateData) isMethodIterable(fd *ast.FuncDecl) (*methodInfo, bool) { if !validateMethodShape(fd) { return nil, false } diff --git a/github/repos_environments_test.go b/github/repos_environments_test.go index ce7f83337c1..3c55d3a04da 100644 --- a/github/repos_environments_test.go +++ b/github/repos_environments_test.go @@ -46,7 +46,7 @@ func TestRequiredReviewer_UnmarshalJSON(t *testing.T) { wantRule: []*RequiredReviewer{}, wantError: true, }, - "Wrong Type Type in Reviewer Object": { + "Wrong Type in Reviewer Object": { data: []byte(`[{"type": 1, "reviewer": {"id": 1}}]`), wantRule: []*RequiredReviewer{{Type: nil, Reviewer: nil}}, wantError: true, diff --git a/scrape/README.md b/scrape/README.md index 65b78bbfcf1..25ca4a2308e 100644 --- a/scrape/README.md +++ b/scrape/README.md @@ -8,7 +8,7 @@ for data that cannot be retrieved via the REST or GraphQL APIs. **Add only what you need.** Whereas the main go-github library attempts to implement the entire GitHub REST API, there is little point in trying to do that -here. Certainly, feel free to contribution patches to get data you actually +here. Certainly, feel free to contribute patches to get data you actually need, but I'd rather not try and provide exhaustive coverage of all GitHub data here.