aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-06 14:01:49 +0000
committerGravatar jesopo2018-11-06 14:01:49 +0000
commitc3c60801170a595ac018aee01fcd4b0161452678 (patch)
tree7445c2c89fb0c34e819c9b616bcf4aff1620127e /modules/github.py
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/github.py')
-rw-r--r--modules/github.py2
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"]