Details
-
Suggestion
-
Resolution: Duplicate
Description
We would like to enhance the BitBucket Jenkins Integration [1]. Specifically we want to handle active and merged branches different. Unfortunate the REST API does not provide any information on whether a branch is active or merged. Therefore we ask you to expose this information through any REST API call. e.g. add an additional 'active' field in the response of
GET [https://bitbucket.org/api/1.0/repositories/myuser/myrepo/branches
{ "feature/BB": { "node": "7edb46d80563", "files": [ { "type": "modified", "file": "contributors.txt" } ], "raw_author": "imod <domi@fortysix.ch>", "utctimestamp": "2016-09-15 11:03:56+00:00", "author": "imod", "timestamp": "2016-09-15 13:03:56", "raw_node": "7edb46d8056375bb034df6700a5d84f07707088f", "parents": [ "9cbbf4bc0b95" ], "branch": "feature/BB", "message": "minny\n", "revision": null, "size": -1, "active": true } }