Details
-
Bug
-
Resolution: Fixed
-
Medium
Description
playing with the new webhook, since Bitbucket hosted HG and Git repo, it is necessary that webhook notification payload should contain SCM type in "repository" section.
also didn`t see "is_private" flag. while these two are in old service hook payload
right now in repository section from notification payload only contains below info:
"repository": { "name": "Hello", "links": { "html": { "href": "https://bitbucket.org/shrimpywu/hello" }, "self": { "href": "https://api.bitbucket.org/2.0/repositories/shrimpywu/hello" }, "avatar": { "href": "https://bitbucket.org/shrimpywu/hello/avatar/16/" } }, "owner": { "display_name": "shrimpy wu", "uuid": "{b5239cc6-2a9d-4122-8511-a132f68909b2}", "username": "shrimpywu", "links": { "html": { "href": "https://bitbucket.org/shrimpywu/" }, "self": { "href": "https://api.bitbucket.org/2.0/users/shrimpywu" }, "avatar": { "href": "https://bitbucket.org/account/shrimpywu/avatar/32/" } }, "type": "user" }, "uuid": "{c989e697-6961-4d14-ba0c-fb46dd9feff4}", "full_name": "shrimpywu/hello", "type": "repository" }
service hook payload:
{ "repository": { "website": null, "fork": false, "name": "Hello", "scm": "git", "owner": "shrimpywu", "absolute_url": "/shrimpywu/hello/", "slug": "hello", "is_private": true }, "truncated": false, "commits": [ { "node": "c5eda0d1459f", "files": [ { "type": "modified", "file": "contributors.txt" } ], "raw_author": "Shrimpy Wu", "utctimestamp": "2015-08-07 19:24:42+00:00", "author": "Shrimpy Wu", "timestamp": "2015-08-07 21:24:42", "raw_node": "c5eda0d1459f638f3bc47bf0517317c9fb503998", "parents": [ "d4d9cbb92366" ], "branch": "master", "message": "la\n", "revision": null, "size": -1 } ], "canon_url": "https://bitbucket.org", "user": "shrimpy" }