aboutsummaryrefslogtreecommitdiffstats
path: root/webhook-core.py
diff options
context:
space:
mode:
Diffstat (limited to 'webhook-core.py')
-rwxr-xr-xwebhook-core.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/webhook-core.py b/webhook-core.py
index bff1137..a9418bc 100755
--- a/webhook-core.py
+++ b/webhook-core.py
@@ -38,6 +38,12 @@ if __name__ == "__main__":
# now sync this repository
data = get_github_payload()
+ if 'zen' in data:
+ # github sends this initially
+ print("Content-Type: text/plain")
+ print()
+ print("Welcome!")
+ sys.exit(0)
ref = data["ref"]
oldsha = data["before"]
newsha = data["after"]