Skip to content

Commit

Permalink
[docs]: Documentation enhancements for `github_repository_deployment_…
Browse files Browse the repository at this point in the history
…branch_policy` resource
  • Loading branch information
nickfloyd committed Aug 4, 2023
2 parents db8ab33 + b416863 commit 3549920
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ resource "github_repository_environment" "env" {
}
resource "github_repository_deployment_branch_policy" "foo" {
repository = "my_repo"
depends_on = [github_repository_environment.env]
repository = "my_repo"
environment_name = "my_env"
name = "foo"
name = "foo"
}
```

Expand All @@ -36,7 +38,7 @@ The following arguments are supported:

* `repository` - (Required) The repository to create the policy in.

* `environment_name` - (Required) The name of the environment. This environment must have `deployment_branch_policy.custom_branch_policies` set to true.
* `environment_name` - (Required) The name of the environment. This environment must have `deployment_branch_policy.custom_branch_policies` set to true or a 404 error will be thrown.

* `name` - (Required) The name pattern that branches must match in order to deploy to the environment.

Expand Down

0 comments on commit 3549920

Please sign in to comment.