synchot/conventionalcommit
Composer 安装命令:
composer require synchot/conventionalcommit
包简介
Conventional commit for php
README 文档
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
统计信息
- 总下载量: 1.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-13