False matches for issues referencing others
Summary
The issue tracker sometimes generates links between issues ("mentioned in ...") that shouldn't be linked.
Steps to reproduce
If an issue comment contains the text #xx where xx is a sequence of digits which happen to match another issue number, it generates a link to that issue, sometimes when a link wasn't intended. Many issues include stack backtraces, which typically have multiple instances of '#xx'.
Example Project
I noticed this at GNOME gtk#46. It references several other issues, saying "mentioned in ...", but the nautilus#615 link seems to be the only one that's valid. The rest are false matches in backtraces.
What is the current bug behavior?
See above.
What is the expected correct behavior?
Perhaps gitlab could use more intelligent pattern matching? Backtraces should be fairly easy to recognise and filter out, and that should hopefully be enough to prevent most cases. Alternatively, issue numbers could start at a much higher number, but that would only help sites started subsequently.