Merge "Add Gerrit tracking id for storyboard"

This commit is contained in:
Jenkins 2014-12-12 16:54:56 +00:00 committed by Gerrit Code Review
commit 84ee7631ce
3 changed files with 18 additions and 0 deletions

View File

@ -40,6 +40,8 @@
# Gerrit configuration options; see Gerrit docs.
# commentlinks:
# A list of regexes Gerrit should hyperlink.
# trackingids:
# A list of regexes to reference external tracking systems.
# war:
# The URL of the Gerrit WAR that should be downloaded and installed.
# Note that only the final component is used for comparing to the most
@ -136,6 +138,7 @@ class gerrit(
$httpd_maxthreads = '',
$httpd_maxwait = '',
$commentlinks = [],
$trackingids = [],
$contactstore = false,
$contactstore_appsec = '',
$contactstore_pubkey = '',
@ -293,6 +296,7 @@ class gerrit(
# - $httpd_minthreads
# - $httpd_maxthreads
# - $commentlinks
# - $trackingids
# - $enable_melody
# - $melody_session
# - $gitweb

View File

@ -89,6 +89,12 @@
html = "<%= commentlink['html'] %>"
<% end -%>
<% end -%>
<% @trackingids.each do |trackingid| -%>
[trackingid "<%= trackingid['name'] %>"]
match = "<%= trackingid['match'] %>"
footer = "<%= trackingid['footer'] %>"
system = "<%= trackingid['system'] %>"
<% end -%>
[theme]
backgroundColor = ffffff
topMenuColor = ffffff

View File

@ -177,6 +177,14 @@ class openstack_project::gerrit (
html => '$1<a href=\"#q,$2,n,z\">$2</a>$3',
},
],
trackingids => [
{
name => 'storyboard',
footer => 'story:',
match => '\\#?(\\d+)',
system => 'Storyboard',
},
],
war => $war,
contactstore => $contactstore,
contactstore_appsec => $contactstore_appsec,