Submitted is _not_ necessarily merged in Gerrit

* zuul/trigger/gerrit.py(Gerrit._isMerged): Only consider MERGED
status to indicate a change is successfully merged. SUBMITTED can
exist on changes which Gerrit was unable to merge due to nonexistent
parent/dependent commits, and possibly for other reasons too.

Change-Id: I673be5010031f8bc26ab31db9afcc7c28854db85
This commit is contained in:
Jeremy Stanley 2014-03-06 03:02:39 +00:00
parent ac6c77d06b
commit 9f8a6e6a22
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class Gerrit(object):
if not status:
return False
self.log.debug("Change %s status: %s" % (change, status))
if status == 'MERGED' or status == 'SUBMITTED':
if status == 'MERGED':
return True
def canMerge(self, change, allow_needs):