summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Hesketh <josh@nitrotech.org>2014-08-14 12:51:46 +1000
committerJoshua Hesketh <josh@nitrotech.org>2014-08-14 12:54:42 +1000
commit0d2c8b839a47b4e61f4c86271f2ec055cbee3708 (patch)
tree3c03c1cc4272965adfd77108d2f58cf834d6502d
parent29fa4424ad6ca603dac451735d2407c6a2f7b3fd (diff)
downloadturbo-hipster-0d2c8b839a47b4e61f4c86271f2ec055cbee3708.tar.gz
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
-rwxr-xr-xtools/zuul_enqueue.py3
1 files changed, 2 insertions, 1 deletions
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