Merge "Convert commentlinks to new no html system"

This commit is contained in:
Zuul 2023-10-30 20:18:38 +00:00 committed by Gerrit Code Review
commit 5b837c1799

View File

@ -99,35 +99,30 @@
[commentlink "bugheader"]
match = "([Cc]loses|[Pp]artial|[Rr]elated)-[Bb]ug:\\s*#?(\\d+)"
link = https://launchpad.net/bugs/$2
html =
[commentlink "bug"]
match = "\\b[Bb]ug:? #?(\\d+)"
link = https://launchpad.net/bugs/$1
html =
[commentlink "story"]
match = "\\b[Ss]tory:? #?(\\d+)"
link = "{{ gerrit_storyboard_url }}/#!/story/$1"
html =
[commentlink "task"]
match = "\\b[Tt]ask:? #?(\\d+)"
link = "{{ gerrit_storyboard_url }}/#!/task/$1"
html =
[commentlink "its-storyboard"]
match = "\\b[Tt]ask:? #?(\\d+)"
link = task: $1
html =
[commentlink "blueprint"]
match = "(\\b[Bb]lue[Pp]rint\\b|\\b[Bb][Pp]\\b)[ \\t#:]*([A-Za-z0-9\\-]+)"
link = https://blueprints.launchpad.net/openstack/?searchtext=$2
html =
[commentlink "changeid"]
match = (I[0-9a-f]{8,40})
link = "/#/q/$1"
html =
[commentlink "gitsha"]
match = "(<p>|[\\s(])([0-9a-f]{40})(</p>|[\\s.,;:)])"
link =
html = "$1<a href=\"/#/q/$2\">$2</a>$3"
link = "/#/q/$2"
prefix = $1
text = $2
suffix = $3
[its-storyboard]
url = {{ gerrit_storyboard_url }}
[trackingid "launchpad-bug"]