Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add project level branch restrictions #210

Open
act-mreeves opened this issue Jun 11, 2024 · 2 comments
Open

Feature request: Add project level branch restrictions #210

act-mreeves opened this issue Jun 11, 2024 · 2 comments

Comments

@act-mreeves
Copy link

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
Copy link
Owner

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 🤷

@act-mreeves
Copy link
Author

@DrFaust92 - I think you are right.
See folks requesting it in https://jira.atlassian.com/browse/BCLOUD-22732. This seems to have led to a way to do it via the UI https://jira.atlassian.com/browse/BCLOUD-14566 but they didn't add to the public API. :-/ It was released fairly recently: https://www.atlassian.com/wac/roadmap/cloud/bitbucket-project-level-branch-restrictions?p=d52b80fb-19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants