Skip to content

Squash merge discards commit bodies (squash_merge_commit_message: BLANK) — intentional? #2204

Description

@yuanchen8911

Summary

The repo merges with squash_merge_commit_title: PR_TITLE and squash_merge_commit_message: BLANK, so the commit that lands on main is the PR title plus trailers and nothing else — every branch commit body is discarded. The rationale for a change therefore exists only in the PR description, never in git log.

Raising this as a question rather than a defect: it may well be deliberate.

Evidence

$ gh api repos/NVIDIA/aicr --jq '{squash_merge_commit_title, squash_merge_commit_message}'
{"squash_merge_commit_message":"BLANK","squash_merge_commit_title":"PR_TITLE"}

Recent merges confirm it. #2183, #2187 and #2195 each landed on main with a body consisting solely of Signed-off-by:. The full commit message written on the branch — in #2183's case around 170 lines describing the fail-closed behaviour and its trade-offs — was dropped at merge.

Trailers do survive, so DCO sign-off is unaffected.

Consequences

  • git log on main carries titles only. Reading why a change was made requires GitHub, a network connection, and the PR still being accessible. git log, git blame -w, git bisect and offline archaeology all lose the reasoning.
  • Effort spent on commit bodies is discarded. CONTRIBUTING.md teaches contributors to write a body explaining "the problem being solved and why this approach was chosen"; that text never reaches main. PR docs: fix the branch-hygiene push rule — append commits mid-review #2201 (merged 2026-08-16) added a note documenting this, but the underlying setting is the real question.
  • The PR title becomes the entire durable record, which raises the stakes on title quality considerably.

The question

Is BLANK intentional?

  • If yes — reasonable, since PR bodies here can be long and some maintainers dislike that in git log. Then the guidance should say plainly that the PR title is the durable artifact and commit bodies serve reviewers only. PR docs: fix the branch-hygiene push rule — append commits mid-review #2201 already did this for the agent rules and CONTRIBUTING.md when it merged on 2026-08-16.
  • If nosquash_merge_commit_message: PR_BODY would preserve the reasoning in history permanently, at the cost of longer commit messages on main. COMMIT_MESSAGES is the other option, though it composes from branch commits rather than the curated PR description.

This is an admin-only repo setting, so it needs a maintainer decision either way.

Related

Metadata

Metadata

Assignees

Labels

theme/ci-dxCI pipelines, developer experience, and build tooling

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions