Use this data source to retrieve deployment branch policies for a repository / environment.
data "github_repository_deployment_branch_policies" "example" {
repository = "example-repository"
environment_name = "env_name"
}
repository
- (Required) Name of the repository to retrieve the deployment branch policies from.
environment_name
- (Required) Name of the environment to retrieve the deployment branch policies from.
deployment_branch_policies
- The list of this repository / environment deployment policies. Each element of deployment_branch_policies
has the following attributes:
id
- Id of the policy.name
- The name pattern that branches must match in order to deploy to the environment.