Don't parse github events when there are no channels listening for the given

repo
This commit is contained in:
jesopo 2018-11-06 14:01:49 +00:00
parent b6ad57f965
commit c3c6080117

View file

@ -22,6 +22,8 @@ class Module(ModuleManager.BaseModule):
enumerate(hooks))[::-1]: enumerate(hooks))[::-1]:
if not full_name in values: if not full_name in values:
hooks.pop(i) hooks.pop(i)
if not hooks:
return
github_event = event["headers"]["X-GitHub-Event"] github_event = event["headers"]["X-GitHub-Event"]