Question about the `github` provider. I may be mis...
# general
m
Question about the
github
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.
l
I think the protections are set up elsewhere (see the BranchProtection resource). These booleans determine if the protections apply to the environment.