Skip to content

Commit

Permalink
Enable BranchRestriction fields to be empty (google#1530)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelangelomo authored May 21, 2020
1 parent 4b96619 commit 30fa1a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions github/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Users []string `json:"users,omitempty"`
// The list of team slugs with push access. (Required; use []string{} instead of nil for empty list.)
Teams []string `json:"teams"`
Teams []string `json:"teams,omitempty"`
// The list of app slugs with push access.
Apps []string `json:"apps,omitempty"`
}
Expand Down

0 comments on commit 30fa1a2

Please sign in to comment.