microscopic-ram-86765
11/17/2021, 9:58 PMgithub
provider. I may be missing something obvious here, but there doesn't seem to be a way to set a RepositoryEnvironment
to only allow a branch like you can via the UI (screenshot attached).
There's an option to create a policy, but the policy is only a boolean
to turn it on or off with no way to specify the actual branch policy.
https://www.pulumi.com/registry/packages/github/api-docs/repositoryenvironment/#custombranchpolicies_nodejs
customBranchPolicies This property is required.
boolean
Whether only branches that match the specified name patterns can deploy to this environment.
little-cartoon-10569
11/17/2021, 10:06 PM