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

MergeRequestCheck not called when auto merging in Bitbucket Server

Michael T. April 25, 2018

Hi,

I want to prevent auto merging under certain conditions in my plug-in as it is possible with MergeRequestCheck for regular merging based on pull requests. MergeRequestCheck does not seam to be called during auto merging. Is there another way for a plug-in to detect auto merges and to prevent them from happening?

Thanks,

Michael

1 answer

1 vote
Mark A.
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2018

Hi Michael,

You are correct in that your MergeRequestCheck is not being called during auto-merging as the merge action does not look at any hooks/hook services. Meaning that the check occurs when you merge a pull request and if your branch model qualifies, the merge is cascaded down bypassing any processes such as hooks.

At the moment there is no way to add merge checks for automatic merges. If interested, a feature request can be opened for the developers to review.

Regards,

Mark

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events