Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Plasticine-Yang opened this issue Jan 6, 2023 · 2 comments

Comments

@Plasticine-Yang
Copy link

Plasticine-Yang commented Jan 6, 2023

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

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:

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.

@Plasticine-Yang Plasticine-Yang changed the title description does not allow sentence case Can not write sentence case in when writing short description for change. Jan 6, 2023
@hengtop
Copy link

hengtop commented Jan 31, 2023

Are you trying to achieve rule sharing? Maybe this article will inspire you https://juejin.cn/post/6975836256441729032

@Zhengqbbb
Copy link
Contributor

Oh, I realized that I hadn't judged this configure and that the next version will support
https://cz-git.qbb.sh/config/engineer#uppercasesubject

中文:https://cz-git.qbb.sh/zh/config/engineer#uppercasesubject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants