Skip to content

Merge details no longer shows "# commits behind" when merge request has been approved

When a merge request hasn't been approved yet, in the merge details it'll show some information about the branch. Specifically, information about how far behind the branch is relative to the target branch:

Screen_Shot_2022-06-23_at_10.28.28_AM

However, when a merge request has been approved by enough developers (based on the settings for the given project) the details about the merge disappear:

Screen_Shot_2022-06-23_at_10.25.58_AM

This branch could be 100 or 1000 commits behind the target branch and we wouldn't know!

This is due to a change that was made in the last month or so, and I think it's a much worse user experience.

Reproduction steps:

  • In a repo that requires at least 1 approval, open a merge request.
  • Commit something new to the target branch so that the merge request's branch is now behind by at least one commit.
  • See that the merge details on the MR now mention that the branch is "# commits behind".
  • Receive enough approvals to make the MR mergeable.
  • The merge details on the MR no longer show the "# commits behind" data.

Until the merge details were updated in the last few weeks on gitlab.com, this information was always shown. It should always be shown in the merge details regardless of the status of the MR.