manifest -> hooks

This commit is contained in:
Anthony Sottile 2014-03-30 13:12:40 -07:00
parent d4c9f9075e
commit c62c1a3b51
8 changed files with 8 additions and 8 deletions

26
example_hooks.yaml Normal file
View file

@ -0,0 +1,26 @@
# Hooks are set up as follows
# - id: hook_id
# name: 'Readable name'
# entry: my_hook_executable
#
# # Optional
# description: 'Longer description of the hook'
#
# # Optional, for now 'python[optional version]', 'ruby #.#.#', 'node'
# language: 'python'
#
# # Optional, defaults to zero
# expected_return_value: 0
- id: my_hook
name: My Simple Hook
description: This is my simple hook that does blah
entry: my-simple-hook.py
language: python
expected_return_value: 0
- id: my_grep_based_hook
name: My Bash Based Hook
description: This is a hook that uses grep to validate some stuff
entry: ./my_grep_based_hook.sh
expected_return_value: 1