Allow 'MAY' in Gerrit submit records

If a review label uses NoOp, then it will indicate 'MAY' as the
status in the submit record for that label (indicating that there
are no criteria for that label to be satisfied).  Treat that in
the same way as OK so that a merge can occur.

Change-Id: I24be23d16aa133a3323b79bd775d42678ebc1dfe
This commit is contained in:
James E. Blair 2015-06-01 08:01:49 -07:00
parent fd463c84bf
commit 7fca9c1cc6
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ class Gerrit(object):
return True
elif sr['status'] == 'NOT_READY':
for label in sr['labels']:
if label['status'] == 'OK':
if label['status'] in ['OK', 'MAY']:
continue
elif label['status'] in ['NEED', 'REJECT']:
# It may be our own rejection, so we ignore