You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
785 B
26 lines
785 B
3 years ago
|
# Hooks
|
||
|
|
||
|
Husky supports all git hooks (https://git-scm.com/docs/githooks). Simply add the corresponding `npm script` to your `package.json`.
|
||
|
|
||
|
| Git hook | npm script |
|
||
|
| -------- | ---------- |
|
||
|
| applypatch-msg | applypatchmsg |
|
||
|
| commit-msg | commitmsg |
|
||
|
| post-applypatch | postapplypatch |
|
||
|
| post-checkout | postcheckout |
|
||
|
| post-commit | postcommit |
|
||
|
| post-merge | postmerge |
|
||
|
| post-receive | postreceive |
|
||
|
| post-rewrite | postrewrite |
|
||
|
| post-update | postupdate |
|
||
|
| pre-applypatch | preapplypatch |
|
||
|
| pre-auto-gc | preautogc |
|
||
|
| pre-commit | precommit |
|
||
|
| pre-push | prepush |
|
||
|
| pre-rebase | prerebase |
|
||
|
| pre-receive | prereceive |
|
||
|
| prepare-commit-msg | preparecommitmsg |
|
||
|
| push-to-checkout | pushtocheckout |
|
||
|
| update | update |
|
||
|
| sendemail-validate | sendemailvalidate |
|