Correct blueprint topic links for modern Gerrit

The Gerrit query URL pattern has changed, so correct how we form it
in the update_blueprint hook to match expectations of current Gerrit
versions.

Change-Id: I368d0d30451051ab88a7b07dc6a2fbe7c4ddb886
This commit is contained in:
Jeremy Stanley 2019-01-12 15:34:55 +00:00 committed by Joshua Hesketh
parent dcd2739069
commit c132a30732

View File

@ -89,7 +89,7 @@ def update_spec(launchpad, project, name, subject, link, topic=None):
wb = '' wb = ''
changed = False changed = False
if topic: if topic:
topiclink = '%s/#q,topic:%s,n,z' % (link[:link.find('/', 8)], topiclink = '%s/#/q/topic:%s' % (link[:link.find('/', 8)],
topic) topic)
if topiclink not in wb: if topiclink not in wb:
wb += "\n\n\nGerrit topic: %(link)s" % dict(link=topiclink) wb += "\n\n\nGerrit topic: %(link)s" % dict(link=topiclink)