Skip to content

fix: body check must not count git trailers as body content#20

Merged
benner merged 1 commit into
mainfrom
fix/detect/empty/body/when/only/signature/exist
Apr 22, 2026
Merged

fix: body check must not count git trailers as body content#20
benner merged 1 commit into
mainfrom
fix/detect/empty/body/when/only/signature/exist

Conversation

@benner

@benner benner commented Apr 21, 2026

Copy link
Copy Markdown
Owner

Commits signed with -s (or any other footer) get a Signed-off-by trailer
appended, which was being treated as body content, causing the body check
to pass even when no real body was written.

Trailers matching the git trailer format (Token: value) are now
excluded from the body presence check.

Commits signed with -s (or any other footer) get a Signed-off-by trailer
appended, which was being treated as body content, causing the body check
to pass even when no real body was written.

Trailers matching the git trailer format (Token: value) are now
excluded from the body presence check.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@benner benner marked this pull request as ready for review April 22, 2026 18:36
@benner benner merged commit 8c43460 into main Apr 22, 2026
3 checks passed
@benner benner deleted the fix/detect/empty/body/when/only/signature/exist branch April 22, 2026 18:36
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