komrad

push_worktree

Push a task's branch to origin under its own name.

writesnot idempotentdestructiveCLI onlyAgent

Komrad overwrites origin's copy after a rebase only when nothing on origin would be lost.

Calling it#

curl -X POST http://127.0.0.1:8787/komrad.agent.v1.AgentService/PushWorktree \
  -H 'Content-Type: application/json' \
  -d '{
  "task_id": "<task_id>"
}'

Request#

PushWorktreeRequest#

FieldTypeDescription
one of*

The task whose branch to push to origin.

task_iduuid

The task, by id.

task_slugstring

not empty

The task, by slug.

Response#

PushWorktreeResponse#

FieldTypeDescription
branchstring

The branch that was pushed.

commitsint32

How many commits were pushed.

forcedbool

Whether origin's copy was overwritten.

shastring

The commit origin's copy of the branch now points at.