gitlabhq/gitlabhq — Issue #527: Detect and link references to commits/issues/users/etc. in commits/comments/etc. (feature request)
Author: riyad
Created: 2012-03-07 14:28:05+00:00
State: open

It would be nice if there was a scheme of references that would be recognized and linked accordingly by Gitlab.

It would be quite useful and its application would be quite universal.

Github's [GitHub Flavored Markdown](http://github.github.com/github-flavored-markdown/) would probably be a good start for an idea on how to implement such a feature.

Example formats:
1234567 would link to commit 1234567
@foo would link to the respective user
!123 would link to a issue
#123 would link to a merge request
[foo] would link to the wiki page
&foo would link to/embed an attachment
$foo would link to/embed a snippet

Usage examples:
"Fixes !123" in a commit message
"This has already been fixed by @foo in #123" in an issue note
"You should ask @foo" in a note
"Installation instructions have been updated accordingly in [Install_on_Windows]" in an issue note
"RTL layout is borked (see &1234567_rtl_layout_fail.jpg)" in an issue
"Then use the database update script $db_update.sh" in a wiki page or an issue note
... use your imagination ;)

Further ideas:
* notify users when they have been mentioned somewhere
* automatically add a "Fixed in 1234567" to an issue when there is a "Fixes !123" in a commit message