X-Git-Url: https://git.ralfj.de/git-mirror.git/blobdiff_plain/6843793205d96449af070b5c7b776eaf205f5ad7..d82914054bb75574c2675649a943025e57fa8680:/webhook-core.py 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"]