script
script
Name of a script to execute. The rules are the same as for scripts
Use args to append arguments to the script. Configuring args
replaces arguments passed by Git unless the {0} template is included.
Example
# lefthook.yml
pre-commit:
jobs:
- script: linter.sh
runner: bash
args: "{staged_files}"
# .lefthook/pre-commit/linter.sh
echo "Everything is OK"