stash pull request settings on branch level

Is it possible to set pull request settings on a branch instead of repo level? Example:

We allow teams to set pull-requests on all repos other than release/*. Release/* pull-requests are required. On every repo, we want release/* to require pull-requests to have a successful build. however, on develop/* or feature/*, or anything else, we don't care. There are teams that want to require pull-requests on multiple branches, as they're managing open projects, but do not want there to be a successful build every time (especially for small changes, like uprevving the component version in a POM). 

If there's no way to set this now, is it on the roadmap? This would be supremely helpful for our workflow.

4 answers

You can require Pull Requests at the branch level on a repo by going to Settings -> Branch Permissions.  I'm not even aware of how else you would do it.

Screen Shot 2016-04-08 at 8.45.06 AM.png

Yes, but i can set pull request behavior on the branch level, not repo level

ah, oops, just re-read your question and parsed it more successfully this time.  No, I don't think you can do that currently.

 

 

I'm confused about the wording. Are release/* , develop/* , feature/* repositories (and not branches)?

they are branches inside a repository

Is there a JIRA for this feature request? 

I'd like to upvote.

I have found this plugin:
https://marketplace.atlassian.com/plugins/com.mobikop.stash.MergeRestrictions/overview

Looks like it can set merge restrictions PER branch name/pattern etc

Try workzone for Bitbucket. It allows you to configure advanced merge restrictions on branch(pattern) level. Available for Bitbucket 4 and 5. 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

24,004 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you