Skip to content

Commit f8a3a92

Browse files
committed
refactor: rename customization function for enterprise ruleset validation
1 parent f44d794 commit f8a3a92

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

github/resource_github_enterprise_ruleset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func resourceGithubEnterpriseRuleset() *schema.Resource {
2727
StateContext: resourceGithubEnterpriseRulesetImport,
2828
},
2929

30-
CustomizeDiff: resourceGithubEnterpriseRulesetCustomizeDiff,
30+
CustomizeDiff: resourceGithubEnterpriseRulesetDiff,
3131

3232
Schema: map[string]*schema.Schema{
3333
"enterprise_slug": {

github/util_ruleset_enterprise_validation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ var repositoryTargetRules = []string{
1616
"repository_visibility",
1717
}
1818

19-
// resourceGithubEnterpriseRulesetCustomizeDiff validates enterprise ruleset configuration
20-
func resourceGithubEnterpriseRulesetCustomizeDiff(_ context.Context, d *schema.ResourceDiff, _ interface{}) error {
19+
// resourceGithubEnterpriseRulesetDiff validates enterprise ruleset configuration
20+
func resourceGithubEnterpriseRulesetDiff(_ context.Context, d *schema.ResourceDiff, _ interface{}) error {
2121
target := d.Get("target").(string)
2222

2323
// Validate conditions

0 commit comments

Comments
 (0)