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

main-branch be part of a repo metadata?

    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

      Currently, to have the latest commit in the main branch you have to make 2 requests.

      This can be improved for the REST API users if the main-branch would be part of the metadata of a repository.

      This would also make the API symmetric with the "PUT repository updates":
      {{PUT https://api.bitbucket.org/1.0/repositories/

      {accountname}/{repo_slug}}}

      The following becomes obsolete:
      {{GET https://api.bitbucket.org/1.0/repositories/{accountname}

      /

      {repo_slug}/main-branch}}

      And the following returns also main_branch in the metadata:
      {{GET https://api.bitbucket.org/1.0/repositories/{accountname}/{repo_slug}

      }}

      Attachments

        Activity

          People

            Unassigned Unassigned
            gabipetrovay gabipetrovay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: