]> git.pld-linux.org Git - packages/cvsspam.git/blame - cvsspam-issue.patch
- added
[packages/cvsspam.git] / cvsspam-issue.patch
CommitLineData
ec6e77c7
ER
1--- cvsspam/cvsspam.rb~ 2006-02-28 11:30:01.000000000 +0200
2+++ cvsspam/cvsspam.rb 2006-03-02 00:49:48.000000000 +0200
3@@ -546,6 +546,10 @@
4 match =~ /([0-9]+)/
5 "<a href=\"#{$ticketURL.sub(/%s/, $1)}\">#{match}</a>"
6 }
7+issueSub = proc { |match|
8+ match =~ /([0-9]+)/
9+ "<a href=\"#{$issueURL.sub(/%s/, $1)}\">#{match}</a>"
10+}
11 wikiSub = proc { |match|
12 match =~ /\[\[(.*)\]\]/
13 raw = $1
14@@ -1281,6 +1285,7 @@
15 $wikiURL = nil
16 $jiraURL = nil
17 $ticketURL = nil
18+$issueURL = nil
19 $viewcvsURL = nil
20 $choraURL = nil
21 $cvswebURL = nil
22@@ -1393,6 +1398,9 @@
23 if $ticketURL != nil
24 commentSubstitutions['\b[Tt][Ii][Cc][Kk][Ee][Tt]\s*#?[0-9]+\b'] = ticketSub
25 end
26+if $issueURL != nil
27+ commentSubstitutions['\b[Ii][Ss][Ss][Uu][Ee]\s*#?[0-9]+\b'] = issueSub
28+end
29 if $wikiURL != nil
30 commentSubstitutions['\[\[.+\]\]'] = wikiSub
31 end
This page took 0.223972 seconds and 4 git commands to generate.