File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1097,7 +1097,7 @@ type RequiredStatusChecks struct {
10971097 Contexts []string `json:"contexts,omitempty"`
10981098 // The list of status checks to require in order to merge into this
10991099 // branch.
1100- Checks []* RequiredStatusCheck `json:"checks"`
1100+ Checks []* RequiredStatusCheck `json:"checks,omitempty "`
11011101 ContextsURL * string `json:"contexts_url,omitempty"`
11021102 URL * string `json:"url,omitempty"`
11031103}
Original file line number Diff line number Diff line change @@ -1766,7 +1766,6 @@ func TestRepositoriesService_UpdateBranchProtection_StrictNoChecks(t *testing.T)
17661766 input := & ProtectionRequest {
17671767 RequiredStatusChecks : & RequiredStatusChecks {
17681768 Strict : true ,
1769- Checks : []* RequiredStatusCheck {},
17701769 },
17711770 RequiredPullRequestReviews : & PullRequestReviewsEnforcementRequest {
17721771 DismissStaleReviews : true ,
@@ -1802,8 +1801,7 @@ func TestRepositoriesService_UpdateBranchProtection_StrictNoChecks(t *testing.T)
18021801 fmt .Fprintf (w , `{
18031802 "required_status_checks":{
18041803 "strict":true,
1805- "contexts":[],
1806- "checks": []
1804+ "contexts":[]
18071805 },
18081806 "required_pull_request_reviews":{
18091807 "dismissal_restrictions":{
@@ -1847,7 +1845,6 @@ func TestRepositoriesService_UpdateBranchProtection_StrictNoChecks(t *testing.T)
18471845 RequiredStatusChecks : & RequiredStatusChecks {
18481846 Strict : true ,
18491847 Contexts : []string {},
1850- Checks : []* RequiredStatusCheck {},
18511848 },
18521849 RequiredPullRequestReviews : & PullRequestReviewsEnforcement {
18531850 DismissStaleReviews : true ,
You can’t perform that action at this time.
0 commit comments