Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c72b620

Browse files
committedDec 22, 2024··
fix: correct resource type
1 parent 22d5549 commit c72b620

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎github/resource_github_repository_ruleset.go

+4
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ func resourceGithubRepositoryRuleset() *schema.Resource {
481481
"file_extension_restriction": {
482482
Type: schema.TypeList,
483483
Optional: true,
484+
MaxItems: 1,
484485
Description: "Prevent pushes based on file extensions.",
485486
Elem: &schema.Resource{
486487
Schema: map[string]*schema.Schema{
@@ -489,6 +490,9 @@ func resourceGithubRepositoryRuleset() *schema.Resource {
489490
MinItems: 1,
490491
Required: true,
491492
Description: "A list of file extensions.",
493+
Elem: &schema.Schema{
494+
Type: schema.TypeString,
495+
},
492496
},
493497
},
494498
},

0 commit comments

Comments
 (0)
Please sign in to comment.