Skip to content

Instantly share code, notes, and snippets.

@thash
Created December 21, 2012 19:35
Show Gist options
  • Save thash/4355203 to your computer and use it in GitHub Desktop.
Save thash/4355203 to your computer and use it in GitHub Desktop.
bitbucketのservice hookでpostされてくるパラメータ例

POSTパラメータ

{"payload"=>
  {"repository": {"website": "",
                  "fork": false,
                  "name": "test",
                  "scm": "git",
                  "absolute_url": "/memerelics/test/",
                  "owner": "memerelics",
                  "slug": "test",
                  "is_private": true},
   "commits": [{"node": "8506a6756473",
                "files": [{"type": "added", "file": "asd"}],
                "branch": "master",
                "utctimestamp": "2012-12-21 19:22:22+00:00",
                "author": "memerelics",
                "timestamp": "2012-12-21 20:22:22",
                "raw_node": "8506a675647355df5c8e1c71b28d57535a5544ee",
                "parents": ["8da243e2f302"],
                "raw_author": "Hash <[email protected]>",
                "message": "kj\\n",
                "size": -1,
                "revision": null}],
   "canon_url": "https://bitbucket.org",
   "user": "memerelics"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment