diff options
| author | 2018-11-06 14:01:49 +0000 | |
|---|---|---|
| committer | 2018-11-06 14:01:49 +0000 | |
| commit | c3c60801170a595ac018aee01fcd4b0161452678 (patch) | |
| tree | 7445c2c89fb0c34e819c9b616bcf4aff1620127e /modules | |
| parent | `github-hook` is an array (diff) | |
| signature | ||
Don't parse github events when there are no channels listening for the given
repo
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/github.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/github.py b/modules/github.py index 48d29159..9856930d 100644 --- a/modules/github.py +++ b/modules/github.py @@ -22,6 +22,8 @@ class Module(ModuleManager.BaseModule): enumerate(hooks))[::-1]: if not full_name in values: hooks.pop(i) + if not hooks: + return github_event = event["headers"]["X-GitHub-Event"] |
