You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I have set up a baseline branch to restrict all users from pushing to it, as I only want code merged after a pull request has been approved.
This works fine if the Stash GUI is used to do the merge.
However, there are times when the pull request has been approved after the head of the baseline branch has moved on significantly.
I'd like to be able to do the approved merge to my local baseline branch, verify the build locally (possibly fixing errors caused during the merge), then push the baseline branch back to the repository. This is particularly important when the changes overlap and the merges are non-trivial.
When I try this, the git push is rejected, as no-one is allowed to push to the baseline branch, even though the merge was of an approved pull request.
Is there a way to allow this behaviour? I've read the documentation but couldn't find anything in there.
Hello Glyn,
As I understand do you want decline the push to base line branch.
If I were you I will set the branch permission on repo,
then develop own pre-receive hook:
references:
Or another point is the use some hook from marketplace.
Hope it helps
Cheers,
Gonchik Tsymzhitov
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.