Add a channel setting for github webhook event filters (github.py)
This commit is contained in:
parent
5bf603bbfa
commit
75b85e76c9
1 changed files with 3 additions and 0 deletions
|
@ -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("#")
|
||||
|
|
Loading…
Reference in a new issue