Skip to content

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

Open

Description

@Plasticine-Yang

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.

Activity

  1. changed the title [-]description does not allow sentence case[/-] [+]Can not write sentence case in when writing short description for change.[/+] on Jan 6, 2023
  2. hengtop commented on Jan 31, 2023

    @hengtop

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

  3. Zhengqbbb commented on Mar 2, 2023

    @Zhengqbbb
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions