DrFaust92 / terraform-provider-bitbucket

Terraform Bitbucket Cloud provider.
https://registry.terraform.io/providers/drfaust92/bitbucket
Mozilla Public License 2.0
36 stars 29 forks source link

Feature request: Add project level branch restrictions #210

Open act-mreeves opened 3 weeks ago

act-mreeves commented 3 weeks ago

Currently https://registry.terraform.io/providers/DrFaust92/bitbucket/latest/docs/resources/branch_restriction only supports repo level branch restrictions. However, bitbucket provides a way to do this at the project level: https://support.atlassian.com/bitbucket-cloud/docs/configure-a-projects-branch-restrictions/

I am guessing that might require a new bitbucket_project_branch_restriction resource.

I admit I don't see an obvious way to do this via the API when I look at:

DrFaust92 commented 2 weeks ago

Im almost certain this is not public API. been looking at this on and off for a while and couldnt make it work via API 🤷