diff options
author | Cedric Gatay <cedric@gatay.fr> | 2011-12-26 21:35:25 +0100 |
---|---|---|
committer | Cedric Gatay <cedric@gatay.fr> | 2011-12-26 21:36:20 +0100 |
commit | 443e21ed92aee684ce7b6581ac30566787e091a8 (patch) | |
tree | 7ca2d0913036741a6d114b805dfb80bed616dc8b /app/views/commits/show.html.haml | |
parent | fbf412eaa0ee68812cdbab9e96f194e03fedd334 (diff) | |
download | gitlab-ce-443e21ed92aee684ce7b6581ac30566787e091a8.tar.gz |
Autolinks to issues in commit message (see #155)
It matches #[0-9]+ in commit messages.
For example
* Fix for #12
* Code review for #56
* Test for #15, Review on #54, Fix for #42
It only links to valid issues (existing and belonging to the current project)
It does not add any link to the commit in the issue page, it only consists in parsing the commit message when displayed.
This can be considere as a primary work for the issue #155 on gitlabhq/gitlabhq.
Diffstat (limited to 'app/views/commits/show.html.haml')
-rw-r--r-- | app/views/commits/show.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/commits/show.html.haml b/app/views/commits/show.html.haml index 57ada2df40e..8e97c857ef1 100644 --- a/app/views/commits/show.html.haml +++ b/app/views/commits/show.html.haml @@ -18,8 +18,7 @@ %hr %pre.commit_message - = preserve @commit.safe_message - + = preserve get_commit_message_with_link_to_issues .clear %br |