{
    "pre-push": {
        "enabled": true,
        "actions": [
            {
                "action": "php vendor/bin/phpstan analyse --memory-limit 300M"
            }
        ]
    },
    "pre-commit": {
        "enabled": true,
        "actions": [
            {
                "action": "php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --diff {$STAGED_FILES|of-type:php} --sequential",
                "conditions": [
                    {
                        "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",
                        "args": ["php"]
                    }
                ]
            },
            {
                "action": "bin/spc dev:lint-config --check",
                "conditions": [
                    {
                        "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\InDirectory",
                        "args": ["config"]
                    }
                ]
            }
        ]
    },
    "post-change": {
        "enabled": true,
        "actions": [
            {
                "action": "composer install",
                "options": [],
                "conditions": [
                    {
                        "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileChanged\\Any",
                        "args": [
                            [
                                "composer.json",
                                "composer.lock"
                            ]
                        ]
                    }
                ]
            }
        ]
    }
}
