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.
|
# Gerrit configuration options; see Gerrit docs.
|
||||||
# commentlinks:
|
# commentlinks:
|
||||||
# A list of regexes Gerrit should hyperlink.
|
# A list of regexes Gerrit should hyperlink.
|
||||||
|
# trackingids:
|
||||||
|
# A list of regexes to reference external tracking systems.
|
||||||
# war:
|
# war:
|
||||||
# The URL of the Gerrit WAR that should be downloaded and installed.
|
# 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
|
# Note that only the final component is used for comparing to the most
|
||||||
@ -136,6 +138,7 @@ class gerrit(
|
|||||||
$httpd_maxthreads = '',
|
$httpd_maxthreads = '',
|
||||||
$httpd_maxwait = '',
|
$httpd_maxwait = '',
|
||||||
$commentlinks = [],
|
$commentlinks = [],
|
||||||
|
$trackingids = [],
|
||||||
$contactstore = false,
|
$contactstore = false,
|
||||||
$contactstore_appsec = '',
|
$contactstore_appsec = '',
|
||||||
$contactstore_pubkey = '',
|
$contactstore_pubkey = '',
|
||||||
@ -293,6 +296,7 @@ class gerrit(
|
|||||||
# - $httpd_minthreads
|
# - $httpd_minthreads
|
||||||
# - $httpd_maxthreads
|
# - $httpd_maxthreads
|
||||||
# - $commentlinks
|
# - $commentlinks
|
||||||
|
# - $trackingids
|
||||||
# - $enable_melody
|
# - $enable_melody
|
||||||
# - $melody_session
|
# - $melody_session
|
||||||
# - $gitweb
|
# - $gitweb
|
||||||
|
@ -89,6 +89,12 @@
|
|||||||
html = "<%= commentlink['html'] %>"
|
html = "<%= commentlink['html'] %>"
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
<% @trackingids.each do |trackingid| -%>
|
||||||
|
[trackingid "<%= trackingid['name'] %>"]
|
||||||
|
match = "<%= trackingid['match'] %>"
|
||||||
|
footer = "<%= trackingid['footer'] %>"
|
||||||
|
system = "<%= trackingid['system'] %>"
|
||||||
|
<% end -%>
|
||||||
[theme]
|
[theme]
|
||||||
backgroundColor = ffffff
|
backgroundColor = ffffff
|
||||||
topMenuColor = ffffff
|
topMenuColor = ffffff
|
||||||
|
@ -177,6 +177,14 @@ class openstack_project::gerrit (
|
|||||||
html => '$1<a href=\"#q,$2,n,z\">$2</a>$3',
|
html => '$1<a href=\"#q,$2,n,z\">$2</a>$3',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
trackingids => [
|
||||||
|
{
|
||||||
|
name => 'storyboard',
|
||||||
|
footer => 'story:',
|
||||||
|
match => '\\#?(\\d+)',
|
||||||
|
system => 'Storyboard',
|
||||||
|
},
|
||||||
|
],
|
||||||
war => $war,
|
war => $war,
|
||||||
contactstore => $contactstore,
|
contactstore => $contactstore,
|
||||||
contactstore_appsec => $contactstore_appsec,
|
contactstore_appsec => $contactstore_appsec,
|
||||||
|
Loading…
Reference in New Issue
Block a user