You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if Commitlint will print full commit, including body and footer, if commit is valid and --verbose flag is added to Commitlint command.
I think this would make adding Commitlint commands to the project clearer.
2. MCVE
2.1. Commit
git add .
git commit -m"feat(kiraexamplescope): This is a valid header"-m"This is a valid body"--signoff
# [NOTE] I also think it would be nice to separate the word “input” with a blank line,# because users might think it’s a name of the commit message type
⧗ input:feat(kiraexamplescope): This isavalid header
✔ found0 problems, 0 warnings
3.2. Expected
⧗ Input:feat(kiraexamplescope): This isavalid header
This isavalid body
Signed-off-by: Kristinita <17247677+Kristinita@users.noreply.github.com>
✔ found0 problems, 0 warnings
4. Explanation of the need for feature
If the commit is non-valid, Commitlint prints body and footer:
git commit -m"This is a non-valid header"-m"This is a valid body"--signoff
⧗ input: This isa non-valid header
This isavalid body
Signed-off-by: Kristinita <17247677+Kristinita@users.noreply.github.com>
✖ subjectmaynotbeempty [subject-empty]
✖ typemaynotbeempty [type-empty]
✖ scopemaynotbeempty [scope-empty]
✖ found3 problems, 0 warnings
ⓘ Gethelp:https://github.com/conventional-changelog/commitlint/#what-is-commitlint
But if the commit is valid, Commitlint prints solely the header. This distinction can be confusing when user add Commitlint commands to a project. When I set up my Commitlint commands, I thought I had set up my Commitlint commands so that Commitlint parsed solely the header. I spent my time unsuccessfully trying to configure Commitlint to parse the body and footer, until I realized that Commitlint already parses the body and footer if I use the commands I provided in the “Commitlint commands” section, but for some reason it doesn’t print the full contents of the commits.
Thanks.
The text was updated successfully, but these errors were encountered:
1. Summary
It would be nice if Commitlint will print full commit, including body and footer, if commit is valid and
--verbose
flag is added to Commitlint command.I think this would make adding Commitlint commands to the project clearer.
2. MCVE
2.1. Commit
2.2. Commitlint commands
or
or if simple-git-hooks activated:
3. Behavior
3.1. Actual
3.2. Expected
4. Explanation of the need for feature
If the commit is non-valid, Commitlint prints body and footer:
But if the commit is valid, Commitlint prints solely the header. This distinction can be confusing when user add Commitlint commands to a project. When I set up my Commitlint commands, I thought I had set up my Commitlint commands so that Commitlint parsed solely the header. I spent my time unsuccessfully trying to configure Commitlint to parse the body and footer, until I realized that Commitlint already parses the body and footer if I use the commands I provided in the “Commitlint commands” section, but for some reason it doesn’t print the full contents of the commits.
Thanks.
The text was updated successfully, but these errors were encountered: