Apps and sources
Preview

List the branches of a git source

The branches the repository has now, by name, each with the commit it points at. Asked of the repository itself, so a deployment form can offer the real branches. An OCI source has none and answers Invalid. A repository that cannot be reached answers Unavailable.

GET
/sources/{sourceId}/branches
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

sourceId*string
Formatuuid

Response Body

The branches.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/sources/497f6eca-6276-4993-bfeb-53cbbbba6f08/branches'
Example Response
{  "items": [    {      "name": "string",      "commit": "string"    }  ]}