pre-commit/testing/resources/logfile_repo/.pre-commit-hooks.yaml
Alex Hutton f2644a4f2e Adds support for 'log_file' in hook config
Specify a filename on a per hook basis and
pre-commit will write the STDOUT and STDERR
of that hook into the file. Useful for CI.

Resolves #499.
2017-05-08 10:54:04 +10:00

6 lines
134 B
YAML

- id: logfile test hook
name: Logfile test hook
entry: bin/hook.sh
language: script
files: .
log_file: test.log