Skip to content

Commit c44e9dd

Browse files
authored
fix!: Typo in field names in the CheckSuite struct (#3444)
BREAKING CHANGE: `Rerequstable`=>`Rerequestable`, `RunsRerequstable`=>`RunsRerequestable`
1 parent eb92cca commit c44e9dd

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

Diff for: github/checks.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ type CheckSuite struct {
8787
// The following fields are only populated by Webhook events.
8888
HeadCommit *Commit `json:"head_commit,omitempty"`
8989
LatestCheckRunsCount *int64 `json:"latest_check_runs_count,omitempty"`
90-
Rerequstable *bool `json:"rerequestable,omitempty"`
91-
RunsRerequstable *bool `json:"runs_rerequestable,omitempty"`
90+
Rerequestable *bool `json:"rerequestable,omitempty"`
91+
RunsRerequestable *bool `json:"runs_rerequestable,omitempty"`
9292
}
9393

9494
func (c CheckRun) String() string {

Diff for: github/checks_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,8 @@ func Test_CheckSuiteMarshal(t *testing.T) {
891891
SHA: Ptr("s"),
892892
},
893893
LatestCheckRunsCount: Ptr(int64(1)),
894-
Rerequstable: Ptr(true),
895-
RunsRerequstable: Ptr(true),
894+
Rerequestable: Ptr(true),
895+
RunsRerequestable: Ptr(true),
896896
}
897897

898898
w := fmt.Sprintf(`{

Diff for: github/github-accessors.go

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: github/github-accessors_test.go

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: github/github-stringify_test.go

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)