Public Repositories
Get branches for a public repository (supports GitHub and GitLab)
Changed onget/git/public/{provider}/{owner}/{repo}/branches
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Path parameters
providerstring required
Git provider (github or gitlab)
ownerstring required
Repository owner
repostring required
Repository name
Query parameters
base_urlstring nullable
HTTPS/443 origin of a self-hosted GitLab instance. Requires authentication and git_repositories:read.
freshboolean
Force fetch fresh data, bypassing cache (default: false)
Response
List of branches
Changes
- info
added the required property
branches/items/is_defaultto the response with the status
- info
- breaking
removed the required property
branches/items/is_defaultfrom the response with the status
- breaking