1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- {
- "pre-push": {
- "enabled": true,
- "actions": [
- {
- "action": "composer analyse"
- }
- ]
- },
- "pre-commit": {
- "enabled": true,
- "actions": [
- {
- "action": "composer cs-fix -- --config=.php-cs-fixer.php --dry-run --diff {$STAGED_FILES|of-type:php}",
- "conditions": [
- {
- "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",
- "args": ["php"]
- }
- ]
- }
- ]
- },
- "post-change": {
- "enabled": true,
- "actions": [
- {
- "action": "composer install",
- "options": [],
- "conditions": [
- {
- "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileChanged\\Any",
- "args": [
- [
- "composer.json",
- "composer.lock"
- ]
- ]
- }
- ]
- }
- ]
- }
- }
|