plan_push
Preview a push of a task's branch to origin without pushing anything.
writesnot idempotentdestructiveCLI onlyAgent
Calling it#
curl -X POST http://127.0.0.1:8787/komrad.agent.v1.AgentService/PlanPush \
-H 'Content-Type: application/json' \
-d '{
"task_id": "<task_id>"
}'komrad rpc plan-push \
--task-id '<uuid>'Request#
PlanPushRequest#
PlanPushRequest asks what a push of a task's branch would do, without doing it.
Response#
PlanPushResponse#
| Field | Type | Description |
|---|---|---|
branch | string | The branch that would be pushed. |
commits | int32 | How many commits would be pushed, counted against origin's copy of the branch, or against the base branch when origin has none. |
forced | bool | Whether origin's copy has commits the branch does not, which the push would overwrite. |
uncommitted_files | int32 | How many files have changes that are not committed and would not be pushed. |
in_sync | bool | Whether origin already has every commit on the branch. |