commitizen / commitizen/cz-cli

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

Open
#961 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.5k
Forks
566
Avg merge
8h 16m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.