pub fn run_post_commit_hook(
request: PostCommitHookRequest<'_>,
) -> Result<PostCommitHookOutcome, PostCommitHookError>Expand description
What:
Run post-commit once for a landed commit.
Why:
The order matches the incumbent: disabled check, author lookup, hook lock, hook run, lock release;
a configuration that defines no hook by name runs none of them, because traditional hooks are unsupported.
In TS you’d write (pseudocode):
if (plan.disabledEvents.includes('post-commit') || !mayHaveHook(plan, 'post-commit')) return; await using lock = plan.skipHookLock ? undefined : await acquireOwnerLock(...); await runTransactionGit(...);