'event["headers"]' -> 'event["headers"]["X-GitHub-Event"]'

This commit is contained in:
jesopo 2018-11-06 14:01:02 +00:00
parent 8789689393
commit 65b182c9a9

View file

@ -22,7 +22,8 @@ class Module(ModuleManager.BaseModule):
if not value == full_name: if not value == full_name:
hooks.pop(i) hooks.pop(i)
github_event = event["headers"] github_event = event["headers"]["X-GitHub-Event"]
outputs = None outputs = None
if github_event == "push": if github_event == "push":
outputs = self.push(event, full_name, data) outputs = self.push(event, full_name, data)