Function: evaluateHook()
August 8, 2026 ยท View on GitHub
@plures/praxis / index / evaluateHook
Function: evaluateHook()
evaluateHook(
context,config):Promise<HookEvalResult>
Defined in: src/hooks/evaluate.ts:127
Evaluate Praxis rules against a git hook context.
This is the core function โ called by hook scripts when git fires an event. Returns actions the hook script should take (block, allow, push, etc.).
Parameters
context
The git hook context built by buildHookContext
config
Praxis hooks configuration loaded from .praxis.hooks.json
Returns
Promise<HookEvalResult>
A HookEvalResult with proceed flag, actions, and an optional summary message