Skip to content

Commit

Permalink
devops: git hooks locked to dev environment installs (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 authored Dec 9, 2024
1 parent 2f3cef0 commit 36e79d3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,17 @@
"@php bin/strauss.phar",
"composer dump-autoload --optimize"
],
"cghooks": "vendor/bin/cghooks",
"cghooks": [
"echo 'Installing git hooks'",
"vendor/bin/cghooks"
],
"post-install-cmd": [
"@strauss",
"@cghooks add -i"
"[ $COMPOSER_DEV_MODE -eq 0 ] || composer cghooks add -i"
],
"post-update-cmd": [
"@strauss",
"@cghooks update"
"[ $COMPOSER_DEV_MODE -eq 0 ] || composer cghooks update"
]
},
"support": {
Expand Down

0 comments on commit 36e79d3

Please sign in to comment.