Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13311

REST API should expose whether a branch is active or not

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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
        }
      }
      

      [1] https://issues.jenkins-ci.org/browse/JENKINS-38256

      Attachments

        Activity

          People

            Unassigned Unassigned
            497062fea575 Dominik Bartholdi
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: