Add Gerrit tracking id for storyboard
This change will allow users to query Gerrit for a Storyboard story using search string 'tr:<tracking id>' or 'story:<tracking id>'. For example you can do a query in gerrit for 'story:2000070'. feature reference: https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#trackingid Change-Id: Ie6c70bd02e40a6ac3a70c9fa5a0efe33a3e8e7cb
This commit is contained in:
parent
5680b06b1c
commit
a10c852628
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user