How do i restrict my developers from raising a pull request to particular branch e.g. - master?
I have one master branch and one feature-release branch. Every developer should be able to raise PR to the feature-release branch and should be restricted to raise a PR to master branch. Only certain leads or managers should be able to raise PR to master for merging the feature releases.
I have setup the branch restrictions for writing and merging to master branch but could not figure out restricting the PR raise for the master.
Any Help is appreciated.
Hi @vkgyl2432 ,
I'm afraid this is currently not possible and there is a feature request for it here.
As a suggestion, you could use Flowie, a Bitbucket app we provide, to streamline workflows.
Even though it won't prevent the PR from being created, you could for instance, use a condition for authors and target branch, and add a 'Invalid' label automatically to the PR to easily identify these cases; and disable merge completely for the PR using a custom policy, so the leads won't accidentally merge it.
This is just one option, we can help you tailor your config to your workflow, if you need assistance you can reach us via support@flowie.app.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.