From f001021e26bae6691932d4e69647b6298ddd1f99 Mon Sep 17 00:00:00 2001 From: angie pinilla Date: Wed, 15 Jul 2020 20:47:50 -0400 Subject: [PATCH] Revert changes in #1530 (#1571) --- github/repos.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/repos.go b/github/repos.go index 156e6e3ec44..0956d7c6fe9 100644 --- a/github/repos.go +++ b/github/repos.go @@ -864,9 +864,9 @@ type BranchRestrictions struct { // different from the response structure. type BranchRestrictionsRequest struct { // The list of user logins with push access. (Required; use []string{} instead of nil for empty list.) - Users []string `json:"users,omitempty"` + Users []string `json:"users"` // The list of team slugs with push access. (Required; use []string{} instead of nil for empty list.) - Teams []string `json:"teams,omitempty"` + Teams []string `json:"teams"` // The list of app slugs with push access. Apps []string `json:"apps,omitempty"` }