Commit 2ec7a918 authored by Daniel Smith's avatar Daniel Smith

Update gerrit RESTquery format for filter commit SHAs only

parent 60cc0917
......@@ -291,7 +291,7 @@ def findRevToBuild(refRevision, module, branch="", returnParent=False):
# Do a whole bunch of stuff to associate the revision we should build of other qt modules.
# Search codereview for the change and return some specific details. Start the saved response from codereview at position 4 to ignore some garbage in the response.
commitRaw = requests.get(f"https://codereview.qt-project.org/changes/?q={refRevision}&o=CURRENT_REVISION&o=CURRENT_COMMIT").text[4:]
commitRaw = requests.get(f"https://codereview.qt-project.org/changes/?q=commit:{refRevision}&o=CURRENT_REVISION&o=CURRENT_COMMIT").text[4:]
if not commitRaw:
return False
try:
......@@ -431,7 +431,7 @@ def determineBuildEligibility(revision, module, branch):
return findRevToBuild(revision, module, branch)
def lookupUnmergedCommit(revision, module):
commitRaw = requests.get(f"https://codereview.qt-project.org/changes/?q={revision}&o=ALL_REVISIONS&o=CURRENT_COMMIT").text[4:]
commitRaw = requests.get(f"https://codereview.qt-project.org/changes/?q=commit:{revision}&o=ALL_REVISIONS&o=CURRENT_COMMIT").text[4:]
if not commitRaw:
return False
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment