Hide Start merge train when not mergeable
What does this MR do and why?
Previously we showed Start merge train
even if the merge request was deemed not mergeable. This MR hides the merge ability in the UI if the MR is deemed not mergeable for merge trains.
Note: This is a high traffic area with a lot of use-cases for what button to show when. Please review carefully
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
- In a project, ensure that merge trains are enabled and that the Pipelines must succeed merge check is enabled
- Create an MR where a pipeline runs and fails
- Observe that the MR correctly shows
Merge blocked: pipelines must succeed. Push a commit that fixes a failure
but does not show theStart merge train
button
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #383137 (closed)
Edited by Payton Burdette