Watch chat workspace git state via WebSockets
GET
CoderSessionTokenheader
Coder-Session-Token<token>chat*stringChat ID
Format
uuidOK
application/json- response
message?stringrepositories?array<>scanned_at?stringFormat
date-timetype?codersdk.WorkspaceAgentGitServerMessageTypeValue in
"changes""error"The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/chats/{chat}/stream/git" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "message": "string", "repositories": [ { "branch": "string", "remote_origin": "string", "removed": true, "repo_root": "string", "unified_diff": "string" } ], "scanned_at": "2019-08-24T14:15:22Z", "type": "changes"}