Issue #7102 wontfix

main-branch be part of a repo metadata?

Gabriel Petrovay
created an issue

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}

Comments (1)

  1. Log in to comment