synchot / conventionalcommit
Conventional commit for php
v5.0.5
2020-01-24 14:54 UTC
Requires
- php: >=7.1
Requires (Dev)
- codeception/codeception: 4.0.x-dev
- codeception/module-asserts: dev-master
- composer/composer: ^1.10@dev
- myclabs/php-enum: ^1.7
- symfony/console: ^2.0.5|^3.0|^4.0|^5.0
- symfony/filesystem: ^4.4.2
- symfony/yaml: ^4.3
- synchot/changeloggen: ^4.0
- webmozart/assert: dev-master
- dev-master
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v4.5.5
- v4.5.4
- v4.5.3
- v4.5.2
- v4.5.1
- v4.5.0
- v4.4.0
- v4.3.0
- v4.2.0
- v4.1.0
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.0.1
- v3.0.0
- v2.0.14
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- dev-develop
- dev-4-small-refactor
- dev-2-unit-tests
This package is auto-updated.
Last update: 2024-10-25 02:37:42 UTC
README
This package will use .git/hooks/commit-msg to check if git commit -m "Your message" is conventional commit compliant.
Instalation
Add to composer.json
"scripts": {
"post-install-cmd": [
"SyncHot\\ConventionalCommit\\Services\\ComposerBuild::copyHooks"
],
"post-update-cmd": [
"SyncHot\\ConventionalCommit\\Services\\ComposerBuild::copyHooks"
]
}
run
composer require --dev synchot/conventionalcommit
How to run
On windows machines please select git-bash as default console.
git commit -m "Some message"
Something went wrong
In Your project do :
cat .git/hooks/commit-msg
If it has the same value as in vendor/synchot/conventionalcommit/resources/commit-msg Tou should be good to go, else try to copy this value.
User defined config
Create /config/packages/conventionalcommit.yaml
with contents of
/vendor/synchot/conventionalcommit/config/conventionalcommit.yaml
Modify all values to suit Your projects needs.
REMOVING THIS PLUGIN
cd <your project dir>
cd .git/hooks
rm commit-msg
CHANGELOG
https://bitbucket.org/SyncHot/conventionalcommit/src/master/CHANGELOG.md
Todos
- Refactor
- Write Tests
License
MIT Jędra Marcin