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
fix: prompt does not respect [body-leading-blank] setting #3826
Labels
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
Just to add that this also happens with the footer, meaning that prompt will not add a line between the body and the footer |
This comment was marked as off-topic.
This comment was marked as off-topic.
@escapedcat , I feel like calling forceLeadingBlankFn in the onEnd event here would work right? I will look into it a bit more and create a PR for this. |
@weixinwu thanks! prompt is not in a good state I believe. But sure, give it a try! |
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Possible Solution
No response
Steps to Reproduce
extends: ['@commitlint/config-angular']
to your commitlint config file (or explicltly addrules: { 'body-leading-blank': [2, 'always'] }
)npx commit
) and provide a body to your commit messagecommitlint
and 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
The text was updated successfully, but these errors were encountered: