commitizen / commitizen/cz-cli

[Feature] combination of "cz-conventional-changelog" with "@commitlint/prompt"

Đang mở
#593 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
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ả

## Question

> How to use "cz-conventional-changelog" and "@commitlint/prompt" together?

See details from https://github.com/marionebl/commitlint/issues/512

## Current configuration confliction

Default to
```js
...
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
```

`commitizen` provides us with a way to automatically generate the changelog. However, it prompt is not convenient when used in daily work. I prefer to use a commitment adaptor like the following

```js
"config": {
"commitizen": {
"path": "@commitlint/prompt"
}
}
```

## Expected Behavior

```js

"config": {
"commitizen": {
"path": ["cz-conventional-changelog","@commitlint/prompt"]
}
}
```

## Current behavior

```bash
➜ topology git:(master) ✗ npm run git:commit

> nio_hdmap_topology@1.0.0 git:commit /Users/lei.wang1/Github/nio-common/topology
> git-cz && ./node_modules/validate-commit-msg/lib/cli.js

The "path" argument must be of type string. Received type object
```

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.