Skip to content

Accept array of commands for hook

Compare
Choose a tag to compare
@BrainMaestro BrainMaestro released this 02 Sep 01:42
· 109 commits to master since this release
5b2feb3

For more complex hooks, they can be written as separate commands in an array.
eg:

"pre-commit": [
    "echo committing as $(git config user.name)",
    "php-cs-fixer .",
    "phpunit"
]