We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8658ba6 commit 1d8c08bCopy full SHA for 1d8c08b
1 file changed
api/python/building-a-ci-server/server.py
@@ -39,6 +39,11 @@ def payload_pull_request(self):
39
# do busy work...
40
return "nothing to pull request payload" # or simple {}
41
42
+ @view_config(header="X-Github-Event:ping")
43
+ def payload_push_ping(self):
44
+ """This method is responding to a webhook ping"""
45
+ return {'ping': True}
46
+
47
48
if __name__ == "__main__":
49
config = Configurator()
0 commit comments