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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.