Skip to main content

run_post_commit_hook

Function run_post_commit_hook 

Source
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.

In TS you’d write (pseudocode):

if (plan.disabledEvents.includes('post-commit')) return; await using lock = plan.skipHookLock ? undefined : await acquireOwnerLock(...); await runTransactionGit(...);