mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: clarify fixes and refs trailer guidance
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/64421 Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
9a7ec52e6f
commit
86bca58641
1 file changed
+7
-8
@@ -180,14 +180,13 @@ A good commit message should describe what changed and why.
|
||||
|
||||
3. Wrap all other lines at 72 columns (except for long URLs).
|
||||
|
||||
4. If your patch fixes an open issue, you can add a reference to it at the end
|
||||
of the log. Use the `Fixes:` prefix and the full issue URL. For other
|
||||
references use `Refs:`.
|
||||
4. If your patch fixes an open issue, include a reference in the pull request
|
||||
description. Use the `Fixes:` prefix and the full issue URL. For other
|
||||
references, use `Refs:`.
|
||||
|
||||
`Fixes:` and `Refs:` trailers get automatically added to your commit message
|
||||
when the Pull Request lands as long as they are included in the
|
||||
Pull Request's description. If the Pull Request lands in several commits,
|
||||
by default the trailers found in the description are added to each commits.
|
||||
`Fixes:` and `Refs:` trailers are automatically added to the commit message
|
||||
when the pull request lands. If the pull request lands as several commits,
|
||||
the trailers from the description are added to each commit by default.
|
||||
|
||||
Examples:
|
||||
|
||||
@@ -207,7 +206,7 @@ A good commit message should describe what changed and why.
|
||||
This rule does not apply to dependency updates (e.g. cherry-picks), release
|
||||
commits, or backport commits.
|
||||
|
||||
Sample complete commit message:
|
||||
Sample final commit message after landing:
|
||||
|
||||
```text
|
||||
subsystem: explain the commit in one line
|
||||
|
||||
Reference in new issue
Block a user