Skip to content

Instantly share code, notes, and snippets.

@orrc
Created May 21, 2014 19:40
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save orrc/0dcbede4f5536cf3f1d7 to your computer and use it in GitHub Desktop.
{
"canon_url": "https://bitbucket.org",
"commits": [
{
"author": "chris_iosphere",
"branch": "feature/do-something",
"files": [
{
"file": "README.md",
"type": "modified"
}
],
"message": "This is a test commit.\n",
"node": "d14613ee1245",
"parents": [
"c49067f63ec2"
],
"raw_author": "Christopher Orr <chris@iosphere.de>",
"raw_node": "d14613ee1245a8d8bc5d5ca3898faafb056338b9",
"revision": null,
"size": -1,
"timestamp": "2014-05-21 18:11:59",
"utctimestamp": "2014-05-21 16:11:59+00:00"
}
],
"repository": {
"absolute_url": "/someaccount/somerepo/",
"fork": false,
"is_private": true,
"name": "somerepo",
"owner": "someaccount",
"scm": "git",
"slug": "somerepo",
"website": ""
},
"truncated": false,
"user": "chris_iosphere"
}
@orrc
Copy link
Author

orrc commented May 21, 2014

This is the JSON payload that Bitbucket sends with a git push webhook.

Note that it's actually send URL-encoded in the payload field of an application/x-www-form-urlencoded body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment