Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Remove/disable 'Merge' button

Tohnmeister June 1, 2014

Hi there. Is it possible to remove or disable the 'Merge' button in Stash in a pull request?

Reason we need this is because currently we're hosting our repository on a different machine than Stash. Until we migrated both Stash and the repository to the same machine we would still like to use Stash for reviewing purposes. E.g. we would want to allow people to create pull requests just for the sake of letting others review.

We want to achieve this by mirroring the repository to the Stash machine and allowing read-only operations on the repository on the Stash machine. Hence, merging is not allowed and should be disabled.

If people have some other suggestions, that would be most welcome too.

2 answers

1 accepted

2 votes
Answer accepted
Michael Heemskerk
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 1, 2014

Hi Tonni,

Your best bet is to write a small plugin that provides a merge-check. That way you can easily prevent pull requests from getting merged. Also consider providing a pre-receive-hook to prevent people from pushing to Stash until you're ready to migrate over.

Cheers,

Michael

0 votes
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 9, 2014

Probably easier to just deny push access to master from the users using branch permissions.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events