pub fn compose_hooks(
template: &str,
workflow: Option<&WorkflowHooks<'_>>,
parts: &TrunkGuards<'_>,
) -> StringExpand description
The hook block from its authored template.
The block always carries the two hooks the release process needs: the
tag guard and the status check. workflow adds the workflow guards’
hooks where the target selects them.
parts is the integration mode’s answer. Under forge integration with
the workflow guards, the two trunk guards render. Under local
integration neither renders, because rk integrate writes the trunk
commit and the operator pushes the trunk, and the header carries the
pre-integrate note.
The one branch grammar substitutes from BRANCH_GRAMMAR. Markers
included, without a trailing newline and with its scope token
unrendered.