aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-06 14:01:02 +0000
committerGravatar jesopo2018-11-06 14:01:02 +0000
commit65b182c9a9c68fe418b78698a7e5296d36dbadc3 (patch)
tree8b619b87a7155c127b77d09dc7964ffa2a31b49d /modules
parentRemove additional 'False' in modules/set.py that was an artefact of the first (diff)
signature
'event["headers"]' -> 'event["headers"]["X-GitHub-Event"]'
Diffstat (limited to 'modules')
-rw-r--r--modules/github.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/github.py b/modules/github.py
index e468edde..c7ed73d7 100644
--- a/modules/github.py
+++ b/modules/github.py
@@ -22,7 +22,8 @@ class Module(ModuleManager.BaseModule):
if not value == full_name:
hooks.pop(i)
- github_event = event["headers"]
+ github_event = event["headers"]["X-GitHub-Event"]
+
outputs = None
if github_event == "push":
outputs = self.push(event, full_name, data)