cz-cli icon indicating copy to clipboard operation
cz-cli copied to clipboard

Scope text needs to be lowercase?

Open dbofmmbt opened this issue 3 years ago • 2 comments

Hello! I tried to pass a scope on a commit message in CamelCase, to indicate the change of a component. However, I noticed that cz lowercases the text of scope. Is it intentional? I haven't found any detail about it in the conventional commits website.

In principle, I think that keeping the text casing as it is should be the expected behavior.

dbofmmbt avatar Dec 03 '20 12:12 dbofmmbt

Hey @eduardocanellas, in my case, I made the following changes:

package.json

    "config": {
        "commitizen": {
            ...
            "disableScopeLowerCase": true
        }
    },

More info -> https://github.com/commitizen/cz-conventional-changelog

commitlint.config.js

module.exports = {
  ...
  rules: {
    'scope-case': [0],
  },
}

More info -> https://github.com/conventional-changelog/commitlint/blob/master/docs/reference-rules.md

SandroMiguel avatar Jan 06 '21 12:01 SandroMiguel

To disable the behaviour globally, set the DISABLE_SCOPE_LOWERCASE env variable to a truthy value, e.g. DISABLE_SCOPE_LOWERCASE=1 (source).

arthurdenner avatar Mar 16 '22 09:03 arthurdenner