question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rule for forcing commit body

See original GitHub issue

Hi,

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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
bentsicommented, Jan 29, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found