diff --git a/github/repos_rules.go b/github/repos_rules.go index 64e7c9ca6df..9299d3e7f3d 100644 --- a/github/repos_rules.go +++ b/github/repos_rules.go @@ -30,8 +30,8 @@ type RulesetLinks struct { // RulesetRefConditionParameters represents the conditions object for ref_names. type RulesetRefConditionParameters struct { - Include []string `json:"include,omitempty"` - Exclude []string `json:"exclude,omitempty"` + Include []string `json:"include"` + Exclude []string `json:"exclude"` } // RulesetRepositoryConditionParameters represents the conditions object for repository_names.