conventional-changelog/commitlint
Voir sur GitHubinput is not displayed correctly (non-existing blank lines added)
Open
#3 129 ouverte le 20 avr. 2022
bughelp wanted
Métriques du dépôt
- Stars
- (15 497 stars)
- Métriques de merge PR
- (Merge moyen 5j 19h) (65 PRs mergées en 30 j)
Description
Current Behavior
When there's no blank line between body and footer (and the line is recognised as footer due to existing issue reference), commitlint wrongly displays the input and adds that blank line between them, which makes the lint messages pretty confusing (please look at the example below).
Expected Behavior
Displayed input should be exactly the same as provided input.
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
Display the initial input with no modification at all.
Steps to Reproduce (for bugs)
❯ echo "test(general): test
some body
related to #1
Issues: #2" | npx commitlint
⧗ input: test(general): test
some body
related to #1
Issues: #2
✖ footer must have leading blank line [footer-leading-blank]
(looking at what is displayed - the blank line is there, but it's actually missing)
Context
Your Environment
| Executable | Version |
|---|---|
commitlint --version |
@commitlint/cli@16.2.3 |
git --version |
git version 2.32.0 (Apple Git-132) |
node --version |
v17.9.0 |