Skip to content

Commit 3549920

Browse files
authored
[docs]: Documentation enhancements for github_repository_deployment_branch_policy resource
2 parents db8ab33 + b416863 commit 3549920

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

website/docs/r/repository_deployment_branch_policy.html.markdown

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ resource "github_repository_environment" "env" {
2323
}
2424
2525
resource "github_repository_deployment_branch_policy" "foo" {
26-
repository = "my_repo"
26+
depends_on = [github_repository_environment.env]
27+
28+
repository = "my_repo"
2729
environment_name = "my_env"
28-
name = "foo"
30+
name = "foo"
2931
}
3032
```
3133

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

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

39-
* `environment_name` - (Required) The name of the environment. This environment must have `deployment_branch_policy.custom_branch_policies` set to true.
41+
* `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.
4042

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

0 commit comments

Comments
 (0)