Draft lifecycle above the workspace primitives: create, approve, discard and
status. Each mutation crosses the extension op-hook boundary (:draft/create,
:draft/approve, :draft/discard), so an extension can veto it with a
:before guard or observe it with an :after hook.
Approval requires the draft to contain the local and fetched origin target.
It fast-forwards locally, restores saved local work, then pushes to origin
when configured. Conflicts must be resolved in the draft before approval.
Every new commit crosses the :git/commit boundary.
Draft lifecycle above the workspace primitives: create, approve, discard and status. Each mutation crosses the extension op-hook boundary (`:draft/create`, `:draft/approve`, `:draft/discard`), so an extension can veto it with a `:before` guard or observe it with an `:after` hook. Approval requires the draft to contain the local and fetched origin target. It fast-forwards locally, restores saved local work, then pushes to origin when configured. Conflicts must be resolved in the draft before approval. Every new commit crosses the `:git/commit` boundary.
(approve! env {:keys [workspace-id message]})Preflight every approving repository before landing any; late failures retain truthful per-root results.
Preflight every approving repository before landing any; late failures retain truthful per-root results.
(create! env opts)Validate every selected catalog repository before creating one owned draft group.
Validate every selected catalog repository before creating one owned draft group.
(diff env {:keys [workspace-id since root]})Read one owned repository's exact patch from its immutable fork or checkpoint.
Read one owned repository's exact patch from its immutable fork or checkpoint.
(discard! env {:keys [workspace-id reason session-state-id]})Discard through :draft/discard, repointing persistence and live confinement
before backend release. A trunk row incorrectly rooted in a managed draft is
detached without deleting that draft. Unrecognized draft-store paths require
an explicit /cd recovery. Returns [discard-result trunk]; hooks may veto.
Discard through `:draft/discard`, repointing persistence and live confinement before backend release. A trunk row incorrectly rooted in a managed draft is detached without deleting that draft. Unrecognized draft-store paths require an explicit `/cd` recovery. Returns `[discard-result trunk]`; hooks may veto.
(status ws)Per-repository landing facts, live working-tree counts and task-review counts. counts. File counts span every draft repository; landing facts include only approvable roots. Unavailable values remain nil.
Per-repository landing facts, live working-tree counts and task-review counts. counts. File counts span every draft repository; landing facts include only approvable roots. Unavailable values remain nil.
(sync! env {:keys [workspace-id action roots message] :or {action :start}})Checkpoint and merge target history in owned drafts only; continue/abort owns its Git operation.
Checkpoint and merge target history in owned drafts only; continue/abort owns its Git operation.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |