I want to disallow commits (pushes) to the "develop" branch, because all code needs to be pushed to a separate branch and must me merged to the "develop" branche with a pull request.
When I use "Branche management" and limit the pushes, merging the pull request is also restricted.
Is it possible to disallow a direct push to a branch, but allow merge of a pull request?
Thank you for your answer. Unfortunately your solution seems to be for Stash only. For Bitbucket this is still a feature request (https://bitbucket.org/site/master/issues/5658/allow-custom-pre-receive-hook-that-rejects).
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
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...
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!
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