Remove/disable 'Merge' button

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

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

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...

136 views 17 7
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you