Fix the zuul_enqueue tool
The author name on a comment is different to the username of the system leaving the vote. Allow this to be configured. Change-Id: I3e2da5eba287c1609df9cca0617fca770a9fb2a9
This commit is contained in:
parent
29fa4424ad
commit
0d2c8b839a
@ -8,6 +8,7 @@ import traceback
|
||||
|
||||
# Set the user to watch
|
||||
user = 'turbo-hipster'
|
||||
author_name = 'DB Datasets CI'
|
||||
|
||||
# Grab a list of missing or negative reviews for a user:
|
||||
url = ("https://review.openstack.org/changes/?q=status:open "
|
||||
@ -33,7 +34,7 @@ for change in json.loads(r.text[5:]):
|
||||
if message['_revision_number'] < patchset:
|
||||
# Finished looking at all the messages on this patchset
|
||||
break
|
||||
if message['author']['name'] == user:
|
||||
if message['author']['name'] == author_name:
|
||||
last_message = message['message']
|
||||
break
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user