読者です 読者をやめる 読者になる 読者になる

Bitbucket の service hook で POST されてくるパラメータ例

{"payload"=>
  {"repository": {"website": "",
                  "fork": false,
                  "name": "test",
                  "scm": "git",
                  "absolute_url": "/myusernamehoge/test/",
                  "owner": "myusernamehoge",
                  "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": "myusernamehoge",
                "timestamp": "2012-12-21 20:22:22",
                "raw_node": "8506a675647355df5c8e1c71b28d57535a5544ee",
                "parents": ["8da243e2f302"],
                "raw_author": "Hash <hoge@example.com>",
                "message": "kj\\n",
                "size": -1,
                "revision": null}],
   "canon_url": "https://bitbucket.org",
   "user": "myusernamehoge"}}

引用元: https://gist.github.com/memerelics/4355203