Skip to content

doc: clarify fixes and refs trailer guidance#64421

Open
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:doc-commit-body-refs
Open

doc: clarify fixes and refs trailer guidance#64421
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:doc-commit-body-refs

Conversation

@trivikr

@trivikr trivikr commented Jul 11, 2026

Copy link
Copy Markdown
Member

The existing guidance is ambiguous: it first suggests adding Fixes: and
Refs: directly to the commit message, then says the landing tooling
automatically copies them from the pull request description.

This change clarifies that these trailers should normally be included in the
pull request description, avoiding unnecessary duplication. It also documents
the manual landing case and clarifies that the sample shows the final commit
message after landing.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Jul 11, 2026
Comment on lines +189 to +190
the trailers from the description are added to each commit by default. When
landing the pull request manually, add the trailers to the commit message.

@aduh95 aduh95 Jul 11, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this, I find it confusing, can you clarify or remove this? "landing manually" could mean several things, but no one should be hand-crafting commit messages that end up on main, they should be generated by NCU – and NCU adds the trailers if found in the PR description.

Suggested change
the trailers from the description are added to each commit by default. When
landing the pull request manually, add the trailers to the commit message.
the trailers from the description are added to each commit by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants