aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/github.py')
-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)