Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions github/resource_github_repository_ruleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func resourceGithubRepositoryRuleset() *schema.Resource {
},
"repository": {
Type: schema.TypeString,
Optional: true,
Description: "Name of the repository to apply rulset to.",
Required: true,
Description: "Name of the repository to apply ruleset to.",
},
"enforcement": {
Type: schema.TypeString,
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/repository_ruleset.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ resource "github_repository_ruleset" "example" {

* `target` - (Required) (String) Possible values are `branch` and `tag`.

* `repository` - (Required) (String) Name of the repository to apply ruleset to.

* `bypass_actors` - (Optional) (Block List) The actors that can bypass the rules in this ruleset. (see [below for nested schema](#bypass_actors))

* `conditions` - (Optional) (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see [below for nested schema](#conditions))

* `repository` - (Optional) (String) Name of the repository to apply rulset to.

#### Rules ####

The `rules` block supports the following:
Expand Down