Rule for forcing commit body
See original GitHub issueHi,
It seems like there is not a rule for forcing a message in the commit body.
I took a look here but only found the body-min-length
rule.
At first I thought I could force adding something to the body by enabling the rule and setting a minimum length of, let’s say 5. But it seems like the rule does not apply if the commit body is left completely empty.
Are there any thoughts on implementing a body-exists
rule?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (1 by maintainers)
Top Results From Across the Web
How to Write a Git Commit Message - cbea.ms
The seven rules of a great Git commit message · 1. Separate subject from body with a blank line · 2. Limit the...
Read more >How are you writing a commit message? - DEV Community
A long commit can have the body right after the description, providing context for the changes. There must be a blank line between...
Read more >How to write a Git commit message properly with examples
In fact, if you have a body paragraph in your commit, it should follow all the standard rules of well-formed grammar and typesetting....
Read more >How to Write Good Commit Messages: A Practical Git Guide
Separate the subject from the body with a blank line · Your commit message should not contain any whitespace errors · Remove unnecessary ......
Read more >Using Contrib Rules - Gitlint - Joris Roovers
Available Contrib Rules Enforces Conventional Commits commit message style on the title. Commit body must contain a Signed-off-by line. Commit title must not ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
to my knowledge there are rules for this already
https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/rules/src/footer-empty.ts https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/rules/src/body-empty.ts
it looks like we are missing them in documentation
the same as we have scope-empty, subject-empty we need to have
body-empty
rule. In my use case, the body is mandatory, but currently, I am not able to enforce this.