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

Add CaptainHook dependency #15

Merged
merged 1 commit into from
Jan 23, 2021
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
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