Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request #15 from bitExpert/feature/captainhook
Browse files Browse the repository at this point in the history
Add CaptainHook dependency
  • Loading branch information
shochdoerfer authored Jan 23, 2021
2 parents d0f7cfa + bddaf80 commit f332222
Show file tree
Hide file tree
Showing 3 changed files with 366 additions and 3 deletions.
52 changes: 52 additions & 0 deletions captainhook.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"commit-msg": {
"enabled": true,
"actions": [
{
"action": "\\CaptainHook\\App\\Hook\\Message\\Action\\Beams",
"options": {
"subjectLength": 50,
"bodyLineLength": 72
}
}
]
},
"pre-push": {
"enabled": true,
"actions": [
{
"action": "./vendor/bin/phing analyse",
"options": []
}
]
},
"pre-commit": {
"enabled": true,
"actions": [
{
"action": "./vendor/bin/phing lint",
"options": []
},
{
"action": "./vendor/bin/phing sniff",
"options": []
},
{
"action": "./vendor/bin/phing unit",
"options": []
}
]
},
"prepare-commit-msg": {
"enabled": false,
"actions": []
},
"post-commit": {
"enabled": false,
"actions": []
},
"post-merge": {
"enabled": false,
"actions": []
}
}
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@
"require": {
"php": "^7.4",
"magento/module-webapi": "100.3.5|100.4.0",
"magento/framework": "102.0.6|103.0.0|103.0.1"
"magento/framework": "102.0.6|103.0.0|103.0.1",
"captainhook/captainhook": "^5.4"
},
"require-dev": {
"n98/magerun2": "^4.0.0",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.5",
"phing/phing": "^2.16",
"phpstan/phpstan": "^0.12.68"
"phpstan/phpstan": "^0.12.68",
"captainhook/plugin-composer": "^5.2"
},
"repositories": [
{
Expand Down
Loading

0 comments on commit f332222

Please sign in to comment.