Skip to content

Commit 02d1c0c

Browse files
committed
Add pattern to create links to GitHub commits from release notes etc.
1 parent 73ddcc2 commit 02d1c0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,8 @@
609609
<replace token="%GCURL%" value="${gc.url}" />
610610

611611
<properties token="%PROPERTIES%" file="${project.distrib.dir}/data/defaults.properties" />
612-
612+
613+
<regex searchPattern="\b(commit)(\s*[#]?|-){0,1}([0-9a-fA-F]{5,})\b" replacePattern="&lt;a href='https://github.com/gitblit/gitblit/commit/$3'&gt;commit $3&lt;/a&gt;" />
613614
<regex searchPattern="\b(issue)(\s*[#]?|-){0,1}(\d+)\b" replacePattern="&lt;a href='https://github.com/gitblit/gitblit/issues/$3'&gt;issue $3&lt;/a&gt;" />
614615
<regex searchPattern="\b(pr|pull request)(\s*[#]?|-){0,1}(\d+)\b" replacePattern="&lt;a href='https://github.com/gitblit/gitblit/pull/$3'&gt;pull request #$3&lt;/a&gt;" />
615616
<regex searchPattern="\b(ticket)(\s*[#]?|-){0,1}(\d+)\b" replacePattern="&lt;a href='https://dev.gitblit.com/tickets/gitblit.git/$3'&gt;ticket $3&lt;/a&gt;" />

0 commit comments

Comments
 (0)