commitizen / commitizen/cz-cli

Can not write sentence case in when writing short description for change.

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

描述

I configured the `subject-case` rule in `.commitlintrc.cjs` for using sentence case subject case like this:

```js
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'subject-case': [2, 'never', ['upper-case']],
},
}
```

and then I run the cz command to write a short description for change like this:

```text
Omit
```

but when I confirm to commit, cz command will change it to lower-case, it is unreasonable.

However, I commit it by using `git commit -m` command can pass the commitlint check, so the problem is not on the configuration.

贡献指南

打开贡献指南

调研方向

Reproduce the issue with the shown `.commitlintrc.cjs` subject-case rule and the cz command, entering `Omit` as the short description. Compare the generated commit with one made using `git commit -m`; done means cz preserves the entered sentence case while the commitlint check still passes.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, node.js
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

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