Skip to content

fix!: detect missing blank line separator in body check#61

Merged
benner merged 1 commit into
mainfrom
fix/body-check-missing-blank-line
Apr 28, 2026
Merged

fix!: detect missing blank line separator in body check#61
benner merged 1 commit into
mainfrom
fix/body-check-missing-blank-line

Conversation

@benner
Copy link
Copy Markdown
Owner

@benner benner commented Apr 28, 2026

A two-line message (subject + body, no blank line) was hitting the
len < 3 guard and reporting "missing body" instead of "missing blank
line between subject and body". The body was present; only the
separator was wrong.

BREAKING CHANGE: the body check now emits "missing blank line between
subject and body" instead of "missing body" when a non-blank second
line immediately follows the subject. Scripts or CI steps that match
on the exact error message string will need updating.

A two-line message (subject + body, no blank line) was hitting the
len < 3 guard and reporting "missing body" instead of "missing blank
line between subject and body". The body was present; only the
separator was wrong.

BREAKING CHANGE: the body check now emits "missing blank line between
subject and body" instead of "missing body" when a non-blank second
line immediately follows the subject. Scripts or CI steps that match
on the exact error message string will need updating.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@github-actions
Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/git_commit_guard
   __init__.py345299%216, 602
TOTAL345299% 

@benner benner marked this pull request as ready for review April 28, 2026 03:06
@benner benner merged commit 4c698f2 into main Apr 28, 2026
4 checks passed
@benner benner deleted the fix/body-check-missing-blank-line branch April 28, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant