Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9167

REST API should expose whether a branch is active or not

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Invalid
    • None
    • None
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      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

              Unassigned Unassigned
              497062fea575 Dominik Bartholdi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: