Don't parse github events when there are no channels listening for the given
repo
This commit is contained in:
parent
b6ad57f965
commit
c3c6080117
1 changed files with 2 additions and 0 deletions
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue