123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- {
- "config": {
- "ansi-colors": true,
- "fail-on-first-error": false,
- "plugins": [],
- "verbosity": "normal"
- },
- "commit-msg": {
- "enabled": false,
- "actions": []
- },
- "pre-push": {
- "enabled": true,
- "actions": [
- {
- "action": "composer test"
- }
- ]
- },
- "pre-commit": {
- "enabled": true,
- "actions": [
- {
- "action": "composer validate",
- "conditions": [
- {
- "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\Any",
- "args": [["composer.json"]]
- }
- ]
- },
- {
- "action": "composer normalize --dry-run",
- "conditions": [
- {
- "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\Any",
- "args": [["composer.json"]]
- }
- ]
- },
- {
- "action": "composer lint:paths -- {$STAGED_FILES|of-type:php}",
- "conditions": [
- {
- "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",
- "args": ["php"]
- }
- ]
- },
- {
- "action": "composer phpcs -- {$STAGED_FILES|of-type:php}",
- "conditions": [
- {
- "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",
- "args": ["php"]
- }
- ]
- }
- ]
- },
- "prepare-commit-msg": {
- "enabled": false,
- "actions": []
- },
- "post-commit": {
- "enabled": false,
- "actions": []
- },
- "post-merge": {
- "enabled": true,
- "actions": [
- {
- "action": "composer install --ansi",
- "conditions": [
- {
- "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileChanged\\Any",
- "args": [["composer.json", "composer.lock"]]
- }
- ]
- }
- ]
- },
- "post-checkout": {
- "enabled": true,
- "actions": [
- {
- "action": "composer install --ansi",
- "conditions": [
- {
- "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileChanged\\Any",
- "args": [["composer.json", "composer.lock"]]
- }
- ]
- }
- ]
- },
- "post-rewrite": {
- "enabled": false,
- "actions": []
- },
- "post-change": {
- "enabled": false,
- "actions": []
- }
- }
|