Skip to main content

Module hooks

Module hooks 

Source
Expand description

Stage-transition hooks.

Branching, docs, changelog, and version bumps are no longer workflow stages (as they were in v0.x). They are hooks that fire at specific stage transitions. hooks_for_transition maps a (from, to) stage move to the hooks that should run, and Hook::run executes one.

Structs§

HookContext
Context passed to every hook.

Enums§

Hook
A side-effecting action that fires at a stage transition.
HookError
Errors produced by hooks.

Functions§

has_version_file
Whether a project has a version file, used by callers to decide if a version bump is meaningful.
hooks_after_ship
Hooks that fire after Ship completes (the workflow’s terminal transition).
hooks_for_transition
Which hooks fire when moving fromto.