summaryrefslogtreecommitdiff
path: root/zuul/driver/github/githubsource.py
diff options
context:
space:
mode:
authorTobias Henkel <tobias.henkel@bmw.de>2019-07-12 12:34:57 +0200
committerTobias Henkel <tobias.henkel@bmw.de>2019-07-12 12:34:57 +0200
commit2e8f2b61ab5ceb05e947a0ab536f9dcbaab6a2cb (patch)
treec725711e282f48d14086f2ace4c67cbe4460d28b /zuul/driver/github/githubsource.py
parentf1bcb7ccb500a95dc5dd9e1ba9f933f55e78e786 (diff)
downloadzuul-2e8f2b61ab5ceb05e947a0ab536f9dcbaab6a2cb.tar.gz
Annotate canMerge check with event id
This helps with debugging from logs in case something doesn't enter a gate as expected. Change-Id: Ia0c7e84812d479c455d72f8e4c367975ea0bd709
Diffstat (limited to 'zuul/driver/github/githubsource.py')
-rw-r--r--zuul/driver/github/githubsource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/zuul/driver/github/githubsource.py b/zuul/driver/github/githubsource.py
index 1c0dda91c..50f85b075 100644
--- a/zuul/driver/github/githubsource.py
+++ b/zuul/driver/github/githubsource.py
@@ -50,13 +50,13 @@ class GithubSource(BaseSource):
# to perform the merge will ensure this is updated.
return change.is_merged
- def canMerge(self, change, allow_needs):
+ def canMerge(self, change, allow_needs, event=None):
"""Determine if change can merge."""
if not change.number:
# Not a pull request, considering merged.
return True
- return self.connection.canMerge(change, allow_needs)
+ return self.connection.canMerge(change, allow_needs, event=event)
def postConfig(self):
"""Called after configuration has been processed."""