Not all commit links have a tooltip

Summary

Not all commit links have a tooltip that show the commit message "summary" as a mention of a commit has when put into e.g. a comment/discussion.

We have a Git workflow where we rebase a lot in our feature-branches. With every rebase the commits change their revision and so it is not always straight forward to find the commit for a comment/discussion. One easy way would be to add a tooltip to the commit link of "... started a discussion XYZ..." since then one can simply look at the name and fixup/squash the correct commit without knowing the revision in a rebase.

Steps to reproduce

  • Open a commit in a Merge Request and do a comment/discussion mentioning a commit.
  • Go into the "Discussion" of the Merge Request.
  • The comment/discussion should be shown and it should read something like "started a discussion on commit XYZ" where XYZ has no tooltip.
  • However, the commit in the comment/discussion will have a tooltip.

What is the current bug behavior?

It seems that the tooltip is not added for every commit link automatically.

What is the expected correct behavior?

Show a tooltip for every commit link.

Relevant logs and/or screenshots

screen

This screenshot shows the tooltip in the comment/discussion. When I hover over the commit link on the top right corner of the screen. There is no tooltip as users would except.

Edited by Markus Zimmermann