Fix reviewday URLs

The https://review.openstack.org/#change,123456 style links
no longer seem to work correctly. This patch updates
the URL to use the new format:

https://review.openstack.org/#/c/123456/ format which
works great.

Change-Id: If7c4fe732d3f272cbe31dabc375943559bb6afd9
This commit is contained in:
Dan Prince 2017-12-08 09:21:54 -05:00
parent 9852644551
commit c1c05b6338
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class MergeProp(object):
def __init__(self, lp, review, cur_timestamp, launchpad_proj_name=None):
self.owner_name = review['owner']['name']
self.url = '%s/#change,%s' % tuple(review['url'].rsplit('/', 1))
self.url = '%s/#/c/%s' % tuple(review['url'].rsplit('/', 1))
self.subject = review['subject']
self.project = review['project'][10:]
self.lp_proj_name = launchpad_proj_name or review['project'][10:]