Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Excluding files from branch permissions

Hi! We are using the branch permission settings on our repository to prevent changes without a pull request to the master branch. What we would need is to exclude certain files from this permission.

Let's say my repository contains FileA, FileB and FileC. Now I want to allow changes on FileC to be pushed to the master branch without a pull request, so I want to exclude this file from the branch permission. If I need to push changes on FileA or FileB, the branch permission should prevent the direct commit to the master.

Is this somehow possible on Bitbucket Server v7.6.12?

1 answer

0 votes
Pramodh M Community Leader Jan 21, 2022

Hi @Martin 

Welcome to the Community!!

Straight forward there are no plugins that achieve this functionality!!

We would need to check the filenames as well while merging the code which is not an efficient way when we take this to more repos context.

You can go configure with branch protection rules that bitbucket offers and leverage those to have your flow apart from the file permissions requirement


Hi @Pramodh M

thanks for your answer!

Is there probably a feature / plugin available to auto-approve pull requests if a certain criteria is met?

For example when we stick to the example which I mentioned above with the 3 files (fileA, fileB and fileC): I could imagine that I have to open a pull request if any of those files change, but an auto-approval is done when the commit contains fileC (depending on the rule I configured).

Would that be possible? With a quick search I couldn't find a plugin like that, so probably not?

Best wishes,

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events