conventional-changelog/commitlint
fix: prompt does not respect [body-leading-blank] setting
Geschlossen
#3.826 geöffnet am 18.12.2023
bughelp wanted
Repository-Metriken
- Stars
- (15.497 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 12h 56m) (52 gemergte PRs in 30 T)
Beschreibung
Expected Behavior
When creating a commit with prompt, if you have body-leading-blank enabled, it should insert a line between the summary and the body
Current Behavior
When creating a commit with prompt, if you have body-leading-blank enabled, it will not insert a line between the summary and the body and will cause a warning or error (depending on your config) when validating the commit message
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
No response
Steps to Reproduce
- Add prompt to your project
- Add
extends: ['@commitlint/config-angular']to your commitlint config file (or explicltly addrules: { 'body-leading-blank': [2, 'always'] }) - Run prompt (
npx commit) and provide a body to your commit message - Check the commit message, it will not have a line between the summary and the body
- (Optional) Run
commitlintand you'll see a warning about[body-leading-blank]
Context
No response
commitlint --version
18.4.3
git --version
2.34.1
node --version
v20.9.0