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

Signed-off-by: Luis Davim <luis.davim@sendoso.com>
  • Loading branch information
luisdavim committed Sep 17, 2022
1 parent 30d1431 commit f211e09
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 f211e09

Please sign in to comment.