Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ddev start && ddev composer install
| `Build/phpunit.xml` | PHPUnit configuration |
| `Build/Scripts/runTests.sh` | Docker-based test runner (ALWAYS use this) |
| `infection.json.dist` | Mutation testing config (MSI >= 70%) |
| `grumphp.yml` | Pre-commit hooks (conventional commits) |
| `Build/captainhook.json` | Git hooks (pre-commit, commit-msg, pre-push) |
| `Configuration/Caching.php` | Cache config (no hardcoded backend, uses instance default) |
| `Configuration/Services.yaml` | DI container, autowiring |
<!-- AGENTS-GENERATED:END filemap -->
Expand Down
78 changes: 78 additions & 0 deletions Build/captainhook.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"config": {
"bootstrap": "../.Build/vendor/autoload.php",
"verbosity": "normal",
"fail-on-first-error": true,
"ansi-colors": true
},
"commit-msg": {
"enabled": true,
"actions": [
{
"action": "\\CaptainHook\\App\\Hook\\Message\\Action\\Regex",
"options": {
"regex": "#^(feat|fix|chore|docs|test|refactor|style|ci|perf|build|revert)(\\([^)]+\\))?!?: .{1,72}$#"
Comment thread
CybotTM marked this conversation as resolved.
Comment thread
CybotTM marked this conversation as resolved.
Comment thread
CybotTM marked this conversation as resolved.
Comment thread
CybotTM marked this conversation as resolved.
},
"conditions": []
}
]
},
"pre-commit": {
"enabled": true,
"actions": [
{
"action": "composer ci:test:php:lint",
"conditions": []
},
Comment thread
CybotTM marked this conversation as resolved.
{
Comment thread
CybotTM marked this conversation as resolved.
"action": "composer ci:test:php:cgl",
"conditions": []
},
{
"action": "composer ci:test:php:phpstan",
"conditions": []
}
]
},
"pre-push": {
"enabled": true,
"actions": [
{
"action": "Build/Scripts/check-tag-version.sh",
"conditions": []
},
{
"action": "composer ci:test:php:unit",
"conditions": []
}
]
},
"post-merge": {
"enabled": true,
"actions": [
{
"action": "composer install"
}
Comment thread
CybotTM marked this conversation as resolved.
]
},
"post-checkout": {
"enabled": true,
"actions": [
{
"action": "composer install"
}
Comment thread
CybotTM marked this conversation as resolved.
Comment thread
CybotTM marked this conversation as resolved.
Comment thread
CybotTM marked this conversation as resolved.
]
},
"prepare-commit-msg": {
"enabled": false,
"actions": []
},
"post-rewrite": {
"enabled": false,
"actions": []
},
"post-change": {
"enabled": false,
"actions": []
}
}
Loading
Loading