Markdown preview shows commit reference instead of label reference for label quick action
There is a case where previewing a label quick action, that instead of showing the label, it shows instead a commit reference, and links to the reference.
By adding /label ~backend
to this issue, the problem could be reproduced
The commit that is being linked to is 24926493, and the short commit ref is 2492649
, which our commit reference filter considers a commit reference: 24926493
It just so happens that the database id of the backend
label is 2492649
As @engwan mentions in https://gitlab.slack.com/archives/CETG54GQ0/p1703089032107789?thread_ts=1702653461.057059&cid=CETG54GQ0
This happens when the label id matches a commit SHA in the project
We use label ID references in the preview.. then the commit reference filter runs first