From 0d2c8b839a47b4e61f4c86271f2ec055cbee3708 Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Thu, 14 Aug 2014 12:51:46 +1000 Subject: 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 --- tools/zuul_enqueue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/zuul_enqueue.py b/tools/zuul_enqueue.py index 2b31567..0073257 100755 --- a/tools/zuul_enqueue.py +++ b/tools/zuul_enqueue.py @@ -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 -- cgit v1.2.1