We currently run Stash 2.3, and have a group called 'mergers' that is used to permission the master branch so that only certain users can push to master. Most of the time we keep this group empty until we do a release.
When it comes to doing a merge into master, we have to add a user to the 'mergers' group, and then remove them shortly after, once the merge is done.
My question is: is there a facility built into Stash to allow pull-request merges to take place using a different group of users to the one that sets the branch permission? Or to put it another way, only allow merges into branch X (master) via pull-merge requests in the browser only?
Thanks.
Hi Barry,
Unfortunately we don't have anything out-of-the-box at the moment.
You might be interested in this open ticket, which you might want to vote for and watch:
https://jira.atlassian.com/browse/STASH-2910
It isn't actually very hard to write a hard-coded plugin that implements the RepositoryPreReceiveHook and blocks any changes to 'refs/heads/master'. That blocks only pushes, and the master branch permissions will be checked as-per normal via branch permissions in a merge.
I hope that helps.
Charles
Thanks. I've upvoted that issue, as that's exactly what I would like to see.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think allow branches to only be updated via Stash pull requests, and not pushed from a remote would be a good feature
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.