komrad

abort_sequence

Abort the sequence in a task's checkout.

writesnot idempotentdestructiveCLI onlyAgent

Komrad keeps the checkout at a ref first and mails the task's writer what was aborted.

Calling it#

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

Request#

AbortSequenceRequest#

FieldTypeDescription
one of*

The task whose sequence to abort.

task_iduuid

The task, by id.

task_slugstring

not empty

The task, by slug.

Response#

AbortSequenceResponse#

FieldTypeDescription
sequenceSequence

The sequence that was aborted.

branchstring

The branch of the task's checkout after the abort. Empty when the checkout is detached.

parked_refstring

The ref that keeps the checkout as it was before the abort, conflicts included.

Types#

Sequence#

Sequence is a git operation stopped part way in a task's checkout.

ValueDescription
none

No git operation is stopped part way.

rebase

A rebase stopped on a commit it could not replay.

am

A git am stopped on a patch it could not apply.

merge

A merge stopped on conflicts.

cherry_pick

A cherry-pick stopped on conflicts or paused between commits.

revert

A revert stopped on conflicts or paused between commits.