@@ -12,7 +12,6 @@ import (
1212 "github.com/google/go-github/v82/github"
1313 "github.com/hashicorp/terraform-plugin-log/tflog"
1414 "github.com/hashicorp/terraform-plugin-sdk/v2/diag"
15- "github.com/hashicorp/terraform-plugin-sdk/v2/helper/customdiff"
1615 "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1716 "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
1817)
@@ -31,7 +30,7 @@ func resourceGithubOrganizationRuleset() *schema.Resource {
3130
3231 SchemaVersion : 1 ,
3332
34- CustomizeDiff : resourceGithubOrganizationRulesetDiff ,
33+ CustomizeDiff : resourceGithubOrganizationRulesetDiff ,
3534
3635 Schema : map [string ]* schema.Schema {
3736 "name" : {
@@ -125,10 +124,10 @@ func resourceGithubOrganizationRuleset() *schema.Resource {
125124 },
126125 },
127126 "repository_property" : {
128- Type : schema .TypeList ,
129- Optional : true ,
130- MaxItems : 1 ,
131- Description : "Conditions to target repositories by custom or system properties." ,
127+ Type : schema .TypeList ,
128+ Optional : true ,
129+ MaxItems : 1 ,
130+ Description : "Conditions to target repositories by custom or system properties." ,
132131 Elem : & schema.Resource {
133132 Schema : map [string ]* schema.Schema {
134133 "include" : {
@@ -193,10 +192,10 @@ func resourceGithubOrganizationRuleset() *schema.Resource {
193192 },
194193 },
195194 "repository_name" : {
196- Type : schema .TypeList ,
197- Optional : true ,
198- MaxItems : 1 ,
199- Description : "Targets repositories that match the specified name patterns." ,
195+ Type : schema .TypeList ,
196+ Optional : true ,
197+ MaxItems : 1 ,
198+ Description : "Targets repositories that match the specified name patterns." ,
200199 Elem : & schema.Resource {
201200 Schema : map [string ]* schema.Schema {
202201 "include" : {
@@ -225,9 +224,9 @@ func resourceGithubOrganizationRuleset() *schema.Resource {
225224 },
226225 },
227226 "repository_id" : {
228- Type : schema .TypeList ,
229- Optional : true ,
230- Description : "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass." ,
227+ Type : schema .TypeList ,
228+ Optional : true ,
229+ Description : "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass." ,
231230 Elem : & schema.Schema {
232231 Type : schema .TypeInt ,
233232 },
0 commit comments