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

Scope text needs to be lowercase? #798

Open
dbofmmbt opened this issue Dec 3, 2020 · 2 comments
Open

Scope text needs to be lowercase? #798

dbofmmbt opened this issue Dec 3, 2020 · 2 comments

Comments

@dbofmmbt
Copy link

dbofmmbt commented Dec 3, 2020

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.

@SandroMiguel
Copy link

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

@arthurdenner
Copy link

arthurdenner commented Mar 16, 2022

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

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