diff options
| author | 2019-01-16 22:36:19 +0000 | |
|---|---|---|
| committer | 2019-01-16 22:36:19 +0000 | |
| commit | 75b85e76c91899ff376da039f7fb37c8f00e9e2d (patch) | |
| tree | 66342a12bd94677c0ff8b40696b12997a56808db /modules | |
| parent | typo, 'respository' -> 'repository' (github.py) (diff) | |
| signature | ||
Add a channel setting for github webhook event filters (github.py)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/github.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/github.py b/modules/github.py index daca8f1f..d4c9bcec 100644 --- a/modules/github.py +++ b/modules/github.py @@ -37,6 +37,9 @@ COMMENT_ACTIONS = { "validate": utils.bool_or_none}) @utils.export("channelset", {"setting": "github-default-repo", "help": "Set the default github repo for the current channel"}) +@utils.export("channelset", {"setting": "github-events", + "help": "Set event category filters for github webhooks", + "validate": lambda s: s.split("|")}) class Module(ModuleManager.BaseModule): def _parse_ref(self, channel, ref): repo, _, number = ref.rpartition("#") |
