commitizen / commitizen/cz-cli

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

未关闭
#593 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
17.5k
派生
566
平均合并
8 小时 16 分钟
30 天内合并 PR
1

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。