conventional-changelog / commitlint

📓 Lint commit messages
https://commitlint.js.org
MIT License
16.72k stars 901 forks source link

`@commitlint/prompt-cli` does not abide the rules in `commitlint.config.js` #2899

Open tukusejssirs opened 2 years ago

tukusejssirs commented 2 years ago

I have set 'body-leading-blank': [2, 'always'] in commitlint.config.js, but when I create a commit with body using npx commit, it does not inserts a blank line before the body. When I run npx commitlint on that commit message, it correctly raises body must have leading blank line error.

Expected Behavior

Format the message according to the rules.

Current Behavior

commitlint/prompt-cli fails to create a commit message according to the rules.

Affected packages

Possible Solution

Steps to Reproduce (for bugs)

  1. First step
  2. Second step
commitlint.config.js ```js ```

Context

Your Environment

Executable Version
commitlint --version 15.0.0
git --version 2.31.1
node --version 17.0.1
@commitlint/prompt-cli 15.0.0
tomavic commented 2 years ago

@escapedcat Any updates on this?

escapedcat commented 2 years ago

No, still looking for someone to help out.