List a repository's branches
The branches of one repository at a connected Git provider, read with the caller's own token; the default branch comes first. 409 when the caller has not connected the provider, 503 when the provider does not answer.
openapi/harthelm.yaml at v1.5.0__Host-harthelm_session<token>Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header
Harthelm-CSRF: 1 and a matching Origin.
provider*stringProvider id from GET /git/providers.
^[a-z][a-z0-9-]{0,30}$owner*stringOwner (user or organization) of the repository at the provider.
^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$repo*stringRepository name without .git.
^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$limit?integerMaximum number of items per page.
1 <= value <= 20050cursor?stringOpaque cursor from next_cursor of the previous page.
length <= 1024A page of branches, the default branch first.
application/json- response
next_cursor?stringAbsent on the last page.
items*array<>curl -X GET 'https://console.example.com/api/v1/git/repos/string/string/string/branches'{ "next_cursor": "string", "items": [ { "name": "string", "commit": "string", "default": true } ]}Branch, commit and changes of /data/app
Read by the IDE agent. Needs `workspace.view`; 409 when the IDE does not run.
List Git providers
The providers this installation is configured for and whether the caller has connected each one. Connecting is a browser navigation to `/auth/git/{provider}/start?rd=<path>`.