Browse Source

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
changes/24/187224/1 2.1.0
James E. Blair 6 years ago
parent
commit
7fca9c1cc6
  1. 2
      zuul/trigger/gerrit.py

2
zuul/trigger/gerrit.py

@ -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

Loading…
Cancel
Save