diff --git a/github/orgs_rules_test.go b/github/orgs_rules_test.go index d45469f27e..13d4c76da0 100644 --- a/github/orgs_rules_test.go +++ b/github/orgs_rules_test.go @@ -555,12 +555,14 @@ func TestOrganizationsService_CreateOrganizationRuleset_RepoProperty(t *testing. Include: []RulesetRepositoryPropertyTargetParameters{ { Name: "testIncludeProp", + Source: "custom", Values: []string{"true"}, }, }, Exclude: []RulesetRepositoryPropertyTargetParameters{ { Name: "testExcludeProp", + Source: "custom", Values: []string{"false"}, }, }, @@ -647,12 +649,14 @@ func TestOrganizationsService_CreateOrganizationRuleset_RepoProperty(t *testing. Include: []RulesetRepositoryPropertyTargetParameters{ { Name: "testIncludeProp", + Source: "custom", Values: []string{"true"}, }, }, Exclude: []RulesetRepositoryPropertyTargetParameters{ { Name: "testExcludeProp", + Source: "custom", Values: []string{"false"}, }, }, @@ -1206,6 +1210,7 @@ func TestOrganizationsService_GetOrganizationRulesetWithRepoPropCondition(t *tes Include: []RulesetRepositoryPropertyTargetParameters{ { Name: "testIncludeProp", + Source: "custom", Values: []string{"true"}, }, }, @@ -1397,6 +1402,7 @@ func TestOrganizationsService_UpdateOrganizationRulesetWithRepoProp(t *testing.T Include: []RulesetRepositoryPropertyTargetParameters{ { Name: "testIncludeProp", + Source: "custom", Values: []string{"true"}, }, }, @@ -1428,6 +1434,7 @@ func TestOrganizationsService_UpdateOrganizationRulesetWithRepoProp(t *testing.T Include: []RulesetRepositoryPropertyTargetParameters{ { Name: "testIncludeProp", + Source: "custom", Values: []string{"true"}, }, }, diff --git a/github/repos_rules.go b/github/repos_rules.go index 6d394164ce..3c6e8f01c9 100644 --- a/github/repos_rules.go +++ b/github/repos_rules.go @@ -52,6 +52,7 @@ type RulesetRepositoryIDsConditionParameters struct { type RulesetRepositoryPropertyTargetParameters struct { Name string `json:"name"` Values []string `json:"property_values"` + Source string `json:"source"` } // RulesetRepositoryPropertyConditionParameters represents the conditions object for repository_property.