Skip to main content

run_hook

Function run_hook 

Source
pub fn run_hook(
    config: &ReleaseConfig,
    hook_name: &str,
    args: &[String],
) -> Result<(), ReleaseError>
Expand description

Run all entries for a configured git hook.

Simple entries run as shell commands with JSON context piped to stdin. Step entries match staged files against patterns and run rules only when matches exist. Rules containing {files} receive the matched file list.