Only expire open reviews
Closed, Merged, Abandoned reviews don't need to be re-expired. Only consider patches that are 'open'. Change-Id: I848a7949a00ef700c1687493a6bd26a7a9508cfd
This commit is contained in:
parent
dc6872b8e3
commit
c3a621900f
|
@ -74,7 +74,7 @@ def main():
|
|||
|
||||
for line in stdout:
|
||||
row = json.loads(line)
|
||||
if 'rowCount' not in row:
|
||||
if 'rowCount' not in row and 'open' in row and row['open']:
|
||||
# Search for negative approvals
|
||||
for approval in row['currentPatchSet']['approvals']:
|
||||
if approval['value'] in ('-1', '-2'):
|
||||
|
|
Loading…
Reference in New Issue