From 9749f77242ec6576675f5f22cc0e66e31510df22 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Wed, 25 Jun 2025 19:09:15 +0300 Subject: [PATCH] chore: Correct typos in comments and tests error messages --- github/issues.go | 2 +- github/repos_test.go | 4 ++-- scrape/forms_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/github/issues.go b/github/issues.go index 395d64cf44f..2704339adc0 100644 --- a/github/issues.go +++ b/github/issues.go @@ -136,7 +136,7 @@ type PullRequestLinks struct { } // IssueType represents the type of issue. -// For now it shows up when receiveing an Issue event. +// For now it shows up when receiving an Issue event. type IssueType struct { ID *int64 `json:"id,omitempty"` NodeID *string `json:"node_id,omitempty"` diff --git a/github/repos_test.go b/github/repos_test.go index a7f1b85e827..668baecf5f7 100644 --- a/github/repos_test.go +++ b/github/repos_test.go @@ -676,7 +676,7 @@ func TestRepositoriesService_GetAutomatedSecurityFixes(t *testing.T) { ctx := context.Background() fixes, _, err := client.Repositories.GetAutomatedSecurityFixes(ctx, "o", "r") if err != nil { - t.Errorf("Repositories.GetAutomatedSecurityFixes returned errpr: #{err}") + t.Errorf("Repositories.GetAutomatedSecurityFixes returned error: #{err}") } want := &AutomatedSecurityFixes{ @@ -3342,7 +3342,7 @@ func TestRepositoriesService_OptionalSignaturesOnProtectedBranch(t *testing.T) { } } -func TestPullRequestReviewsEnforcementRequest_MarshalJSON_nilDismissalRestirctions(t *testing.T) { +func TestPullRequestReviewsEnforcementRequest_MarshalJSON_nilDismissalRestrictions(t *testing.T) { t.Parallel() req := PullRequestReviewsEnforcementRequest{} diff --git a/scrape/forms_test.go b/scrape/forms_test.go index 52d4d5edbbf..c1f4152c384 100644 --- a/scrape/forms_test.go +++ b/scrape/forms_test.go @@ -89,7 +89,7 @@ func Test_ParseForms(t *testing.T) { } } -func Test_FetchAndSumbitForm(t *testing.T) { +func Test_FetchAndSubmitForm(t *testing.T) { t.Parallel() client, mux := setup(t) var submitted bool