Skip to main content

run_hooks

Function run_hooks 

Source
pub fn run_hooks(
    event: &str,
    context: &HashMap<String, String>,
    cwd: Option<&Path>,
    repo_root: Option<&Path>,
) -> Result<bool>
Expand description

Run all enabled hooks for an event.

Pre-hooks (containing “.pre”) abort the operation on failure. Post-hooks log warnings but don’t abort.