summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Hesketh <josh@nitrotech.org>2015-12-17 17:11:38 +1100
committerJoshua Hesketh <josh@nitrotech.org>2015-12-17 17:14:57 +1100
commit426742f7680bfd0681f851a9292a9464bc956096 (patch)
treed2067679a22137a72b19485f309a77677eea5fe2
parentdf1410b2734f5c630405c843c29a9617c37f2887 (diff)
downloadturbo-hipster-426742f7680bfd0681f851a9292a9464bc956096.tar.gz
Use account id with new gerrit
Change-Id: I75323161c2232651ff357b639856494e63155550
-rwxr-xr-xtools/zuul_enqueue.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/zuul_enqueue.py b/tools/zuul_enqueue.py
index ad9e653..8236606 100755
--- a/tools/zuul_enqueue.py
+++ b/tools/zuul_enqueue.py
@@ -9,8 +9,10 @@ import traceback
# Set the user to watch
user = 'turbo-hipster'
author_name = 'DB Datasets CI'
+author_account_id = 9578
upstream_user = 'jenkins'
upstream_author_name = "Jenkins"
+upstream_author_account_id = 3
# Grab a list of missing or negative reviews for a user:
url = ("https://review.openstack.org/changes/?q=status:open "
@@ -38,10 +40,12 @@ for change in json.loads(r.text[5:]):
if message['_revision_number'] < patchset:
# Finished looking at all the messages on this patchset
break
- if not last_message and message['author']['name'] == author_name:
+ if (not last_message and
+ message['author']['_account_id'] == author_account_id):
last_message = message['message']
if (not last_upstream_message and
- message['author']['name'] == upstream_author_name):
+ message['author']['_account_id'] ==
+ upstream_author_account_id):
last_upstream_message = message['message']
if (last_upstream_message and