Skip to content

Commit e881974

Browse files
authored
Revert changes in #1530 (#1571)
1 parent c4f1bb0 commit e881974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github/repos.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,9 +864,9 @@ type BranchRestrictions struct {
864864
// different from the response structure.
865865
type BranchRestrictionsRequest struct {
866866
// The list of user logins with push access. (Required; use []string{} instead of nil for empty list.)
867-
Users []string `json:"users,omitempty"`
867+
Users []string `json:"users"`
868868
// The list of team slugs with push access. (Required; use []string{} instead of nil for empty list.)
869-
Teams []string `json:"teams,omitempty"`
869+
Teams []string `json:"teams"`
870870
// The list of app slugs with push access.
871871
Apps []string `json:"apps,omitempty"`
872872
}

0 commit comments

Comments
 (0)