commitizen / commitizen/cz-cli

Understanding: usage with commitlint

オープン
#740 コメント 9 件 リアクション 5 件 担当者 0 名 GitHub で見る
question
主要言語
JavaScript
スター
17.5k
フォーク
566
平均マージ
8時間 16分
マージ済み PR(30日)
1

説明

I am already using [commitlint ](https://commitlint.js.org/#/) with conventional commits in my project to lint my commit messages as part of husky `commit-msg` githook.

I also want to have the ability to prompt users for correctly format messages while they are committing instead of checking before the actual commit, which commitlint enables with [commitlint prompt](https://commitlint.js.org/#/guides-use-prompt)
Ofcourse, commitizen enables this as well with
```
"config": {
"commitizen": {
"path": "path/to/adapter"
}
},
```

Is there any benefit of using commitizen if I am using commitlint already?

Or, would it make sense to only use commitizen?

Does commitizen provide a `commit-msg` hook? as i would like to still lint my git commit messages if a user does not follow the prompt that commitizen provides for commit.

Assuming I do get some benefits by using both commitizen and commitlint, would it be better for me to use the commitlint adapter with `config-conventional` or `cz-conventional-changelog`?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。