OSDN Git Service

Autolinks to issues in commit message (see #155)
authorCedric Gatay <cedric@gatay.fr>
Mon, 26 Dec 2011 20:35:25 +0000 (21:35 +0100)
committerCedric Gatay <cedric@gatay.fr>
Mon, 26 Dec 2011 20:36:20 +0000 (21:36 +0100)
commit443e21ed92aee684ce7b6581ac30566787e091a8
tree7ca2d0913036741a6d114b805dfb80bed616dc8b
parentfbf412eaa0ee68812cdbab9e96f194e03fedd334
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.
app/helpers/commits_helper.rb
app/views/commits/show.html.haml