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

Get list of merged branches using REST API

    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

      In the Bitbucket web interface, one can filter the branch list as Active or Merged. I would like to use the REST API to get the list of Merged branches but it seems this is not supported. I can get a list of branches using the 1.0 API but there does not appear to be anything that indicates if they have been merged or not.

      In our workflow we typically use the option to delete branches after they have been merged but occasionally we need to keep the branch for a while or sometimes users simply forget to delete branch. In either case it would be nice to have a way to remind users of any merged branches they have lying around. I was going to write a simple script to do this using the REST API but the merge status is not accessible.

      Can the merge status be added to the API?

      Thanks,
      Phil

      Attachments

        Activity

          People

            Unassigned Unassigned
            a1d2dea23b47 Phil Rittenhouse
            Votes:
            31 Vote for this issue
            Watchers:
            21 Start watching this issue

            Dates

              Created:
              Updated: