"merge when pipeline succeeds" remains set after it fails
Summary
Enabling an automatic merge when the pipeline succeeds fails silently and does not notify the author and does not refresh the Merge Request without any further interaction required from author.
Steps to reproduce
- Have a project with "Fast-Forward merge" settings enabled
- Have a CI running on every merge request
- Create a Merge Request and hit the "merge when pipeline succeeds" button
- Meanwhile someone else merges something to same target branch
What is the current bug behavior?
CI succeeds, merge request is not merged, there is no feedback to the author and there is no way to merge that MR. Only option to click to cancel auto-merge in order to be able to move on with MR.
What is the expected correct behavior?
It should send a notification to user that it failed to merge and refresh the UI to show "rebase" button.