Skip to main content

Module hook

Module hook 

Source
Expand description

KindHook implementations for the three note kinds this pack contributes. Validation only — provenance edges are supplied by the caller and linked by the runtime’s create_note path itself. See crates/khive-pack-git/docs/api/hooks.md for why no after_create edge work is needed here.

Structs§

CommitHook
KindHook for the immutable commit note kind.
IssueLikeHook
KindHook shared by issue and pull_request — both require properties.number (integer) and properties.project_id (UUID), and, when present, validate properties.state_reason (governed to a fixed set for issue per ADR-088 §3; only checked for non-emptiness for pull_request). See crates/khive-pack-git/docs/api/hooks.md#issuelikehook for why project_id is required here rather than left to caller discipline.