summaryrefslogtreecommitdiff
path: root/zuul/driver/github/githubsource.py
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2017-05-18 14:11:29 -0700
committerJames E. Blair <jeblair@redhat.com>2017-05-19 13:24:00 -0700
commitaad3ae2fe13cbd223c4cb51cbdde188b6308ff9d (patch)
tree73e41a010aa798fa5cb8ba2fdfdf17d7f192445a /zuul/driver/github/githubsource.py
parent14b315d556bb898eeacf6278b336c0bff16c2ba7 (diff)
downloadzuul-aad3ae2fe13cbd223c4cb51cbdde188b6308ff9d.tar.gz
Add driver-specific pipeline requirements
As we expand the Github driver, we're seeing a need to specify driver-specific pipeline requirements. To accomplish this, bump the require/reject pipeline keywords down a level underneath connection names. This lets users specify per-source pipeline requirements. This adds new API methods for sources to create the new pipeline filters (by returning instances or subclasses of RefFilter, which used to be called ChangeishFilter). This change also creates and/or moves driver-specific subclasses of EventFilter and TriggerEvent in(to) their respective drivers. Change-Id: Ia56c254e3aa591a688103db5b04b3dddae7b2da4
Diffstat (limited to 'zuul/driver/github/githubsource.py')
-rw-r--r--zuul/driver/github/githubsource.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/zuul/driver/github/githubsource.py b/zuul/driver/github/githubsource.py
index 312ee871a..e7d19ac2e 100644
--- a/zuul/driver/github/githubsource.py
+++ b/zuul/driver/github/githubsource.py
@@ -90,3 +90,17 @@ class GithubSource(BaseSource):
def _ghTimestampToDate(self, timestamp):
return time.strptime(timestamp, '%Y-%m-%dT%H:%M:%SZ')
+
+ def getRequireFilters(self, config):
+ return []
+
+ def getRejectFilters(self, config):
+ return []
+
+
+def getRequireSchema():
+ return {}
+
+
+def getRejectSchema():
+ return {}