Status branch protection checking for github

The github provider was doing a very naive check for whether a PR was
able to be merged, simply checking if there was a current merge
conflict. We also want to make sure that if there are any branch
protection requirements these are also checked because if zuul tries to
merge a patch via github that doesn't meet the branch protection it will
be rejected and cause zuul to report a failure to users.

Change-Id: I66d54c2603c462cb029510dd4e37fc89afeb200d
Signed-off-by: Jamie Lennox <jamielennox@gmail.com>
Co-authored-by: Tobias Henkel <tobias.henkel@bmw.de>
This commit is contained in:
Tobias Henkel
2018-05-24 08:34:00 -07:00
committed by Tobias Henkel
parent a889ea33c1
commit 0445d03542
14 changed files with 274 additions and 31 deletions

View File

@@ -23,7 +23,7 @@ class MQTTDriver(Driver, ConnectionInterface, ReporterInterface):
def getConnection(self, name, config):
return mqttconnection.MQTTConnection(self, name, config)
def getReporter(self, connection, config=None):
def getReporter(self, connection, pipeline, config=None):
return mqttreporter.MQTTReporter(self, connection, config)
def getReporterSchema(self):