Fixed quering new Gerrit

Extend rest query with additional options to get 'name' that was removed
with commit https://gerrit-review.googlesource.com/#/c/39767/

Removed 'exit' on invalid gerrit reviewer name.

Change-Id: If48d5655202ca1e36c33ac6067e86b2db84360f2
This commit is contained in:
Lenny Verkhovsky 2015-12-17 17:46:30 +02:00
parent f4e427216e
commit 00f6bdd358
1 changed files with 2 additions and 2 deletions

View File

@ -72,13 +72,13 @@ def query_gerrit(name, count, project):
if project:
search = search + (" AND project:\"%s\"" % project)
query = ("https://review.openstack.org/changes/?q=%s&"
"o=MESSAGES" % search)
"o=MESSAGES&o=DETAILED_ACCOUNTS" % search)
r = requests.get(query)
try:
changes = json.loads(r.text[4:])
except ValueError:
print "query: '%s' failed with:\n%s" % (query, r.text)
sys.exit(1)
return []
comments = []
for change in changes: