main-branch be part of a repo metadata?

Issue #7102 wontfix
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{accountname}/{repo_slug}

The following becomes obsolete: GET{accountname}/{repo_slug}/main-branch

And the following returns also main_branch in the metadata: GET{accountname}/{repo_slug}

Comments (1)

  1. Log in to comment