Branch, commit and changes of /data/app
Read by the IDE agent. Needs `workspace.view`; 409 when the IDE does not run.
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.
ws*integerNumeric resource id.
int641 <= valueThe status.
application/json- response
repository*booleanWhether /data/app is a Git work tree.
branch?stringAbsent when detached.
commit?stringupstream?stringThe tracked branch, e.g. origin/main.
ahead?integer0 <= valuebehind?integer0 <= valuedirty*booleanchanged_files*integer0 <= valuefetch_error?stringWhy the IDE agent's last background fetch (every 5 minutes) failed, e.g. the git remote did not answer within 30s (0.11.1); absent before the first fetch and after one that worked. behind is as old as the
last fetch that worked.
curl -X GET 'https://console.example.com/api/v1/workspaces/1/git'{ "repository": true, "branch": "string", "commit": "string", "upstream": "string", "ahead": 0, "behind": 0, "dirty": true, "changed_files": 0, "fetch_error": "string"}Disconnect a Git provider
Deletes the caller's stored tokens for the provider. Workspaces the caller owns can no longer clone or push through the git proxy until the caller connects again.
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.