Skip to content

Commit

Permalink
fix: invalid request when creating branch protection that requires br…
Browse files Browse the repository at this point in the history
…anches to be up to date before merging and no checks
  • Loading branch information
luisdavim committed Sep 17, 2022
1 parent d611561 commit 4c1cc13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/repos.go
Expand Up @@ -905,7 +905,7 @@ type RequiredStatusChecks struct {
Contexts []string `json:"contexts,omitempty"`
// The list of status checks to require in order to merge into this
// branch.
Checks []*RequiredStatusCheck `json:"checks,omitempty"`
Checks []*RequiredStatusCheck `json:"checks"`
}

// RequiredStatusChecksRequest represents a request to edit a protected branch's status checks.
Expand Down

0 comments on commit 4c1cc13

Please sign in to comment.