Merge "Gerrit: Add gerrit version check for HTTP review tag"

This commit is contained in:
Zuul 2021-02-11 01:03:28 +00:00 committed by Gerrit Code Review
commit b00a4a5f11
1 changed files with 2 additions and 1 deletions

View File

@ -1128,7 +1128,8 @@ class GerritConnection(BaseConnection):
data['robot_comments'] = file_comments
else:
data['comments'] = file_comments
data['tag'] = 'autogenerated:zuul:%s' % (item.pipeline.name)
if self.version >= (2, 13, 0):
data['tag'] = 'autogenerated:zuul:%s' % (item.pipeline.name)
changeid = "%s~%s~%s" % (
urllib.parse.quote(str(change.project), safe=''),
urllib.parse.quote(str(change.branch), safe=''),