commitizen / commitizen/cz-cli

Understanding: usage with commitlint

Đang mở
#740 9 bình luận 5 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
JavaScript
Star
17.5k
Fork
566
Merge trung bình
8 giờ 16 phút
Pull request đã merge (30 ngày)
1

Mô tả

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`?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.