From 4c1cc1354bf7220380854d9123eaceaa3e005387 Mon Sep 17 00:00:00 2001 From: Luis Davim Date: Sat, 17 Sep 2022 14:40:07 +0100 Subject: [PATCH] fix: invalid request when creating branch protection that requires branches to be up to date before merging and no checks --- github/repos.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/repos.go b/github/repos.go index 499ed677866..45fd1888d59 100644 --- a/github/repos.go +++ b/github/repos.go @@ -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.