Show how many commits behind (diverged) the MR is from its target branch when it's Ready To Merge
What does this MR do and why?
For #368295 (closed)
Before an MR is mergeable, it shows how many commits behind the target branch the merge request is.
Once the MR can be merged, the widget stops showing that information.
This change shows the same "commits behind" divergence amount when the MR is ready to merge.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
Please see the replication steps in the linked issue.
In short:
- Create an MR that can be merged
- Add commits to the target branch
- Note the "Ready to merge" widget content just above the "Merge" 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.
Edited by Thomas Randolph