Skip to main content

Module hook

Module hook 

Source
Expand description

KindHook implementations for the three note kinds this pack contributes.

Validation only — this pack introduces no new edges at after_create time. Provenance edges (annotates -> project / document / merging PR) are supplied by the caller (the ingester, see src/ingest.rs) as part of the generic create(kind=..., annotates=[...]) call; the runtime’s own create_note path validates and links them atomically, so no after_create edge-creation logic is needed here (unlike gtd’s TaskHook::after_create).

Structs§

CommitHook
KindHook for the immutable commit note kind.
IssueLikeHook
KindHook shared by issue and pull_request — both require properties.number and properties.project_id, and, when present, validate properties.state_reason. issue’s state_reason is governed to a fixed set (ADR-088 §3); v0 does not document a fixed set for pull_request’s state_reason, so it is only checked for non-emptiness there.