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:
parent
f4e427216e
commit
00f6bdd358
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user