Skip to content

fix: add an empty line between commit summary and body#148

Merged
berberman merged 1 commit into
berberman:masterfrom
XYenon:fix/git-commit-message-format
Mar 13, 2026
Merged

fix: add an empty line between commit summary and body#148
berberman merged 1 commit into
berberman:masterfrom
XYenon:fix/git-commit-message-format

Conversation

@XYenon
Copy link
Copy Markdown
Contributor

@XYenon XYenon commented Mar 9, 2026

Description

This PR fixes the Git commit message format generated when using the --commit-changes option.

According to Git best practices and standards, there should be an empty line between the commit summary (subject line) and the commit body. Previously, nvfetcher used a single newline character \n, which caused the body to follow the summary immediately. This change introduces a second newline character to ensure a proper empty line.

Comparison

Before:

Update
package-a: 1.0.0 -> 1.1.0
package-b: 2.0.0 -> 2.1.0

After:

Update

package-a: 1.0.0 -> 1.1.0
package-b: 2.0.0 -> 2.1.0

Affected Scope

Only affects the automatic commit message format when the --commit-changes flag is used.

@berberman berberman merged commit e41af97 into berberman:master Mar 13, 2026
1 check passed
@berberman
Copy link
Copy Markdown
Owner

Thank you!

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.

2 participants