Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do i restrict my developers from raising a pull request to particular branch e.g. - master?

vkgyl2432
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 13, 2025

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.

1 answer

0 votes
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2025

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events