Hi,
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?
Marijn
I'm trying this too!
Prevent any user from push (https://confluence.atlassian.com/bitbucket/branch-management-385912271.html) has no utility if blocks merge in pull requests!! =/
Hi Harry,
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).
Marijn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can write a pre-recieve hook to deny pushes to certain branches.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.