Action

One store-writing step in a Plan.

Usage

Source

Action(
    op,
    key="",
    kind="",
    target="",
    detail="",
    params=dict(),
)

Parameter Attributes

op: str

pin, record, fork, defer-fork, reuse, adopt, trunk, refuse, unpin, keep-pin, delete-branch, keep-branch, forget-working-ref, delete-listing, fast-forward, merge, add, update, remove, upsert, repin, refork, or vcs-commit.

key: str = ""

Object key the action concerns (empty for repository-level steps).

kind: str = ""

Backend kind.

target: str = ""

Native ref / branch / file the action creates, deletes, or points at.

detail: str = ""

Human-readable explanation.

params: dict[str, Any] = dict()
Machine-readable inputs (state, pin id, source, …) used by apply.