Closed
Labels
Priority: HighIssues/Bugs the needs to be fixed quickly.Issues/Bugs the needs to be fixed quickly.bug
Description
The original commit message in nodejs/node#41490 was:
commit f042c61749a34565ab57b5ed5f7c89ab9e894494
Author: Tobias Nießen <tniessen@tnie.de>
Date: Tue Jan 11 20:38:00 2022 +0000
src: gracefully handle errors in GetX509NameObject
Co-authored-by: Anna Henningsen <anna@addaleax.net>
However, git node land added metadata at the end without incorporating the Co-authored-by line:
commit 721cc6b5e2d6f4112b56ee5ead19ddaeb99ac7a6
Author: Tobias Nießen <tniessen@tnie.de>
Date: Tue Jan 11 20:38:00 2022 +0000
src: gracefully handle errors in GetX509NameObject
Co-authored-by: Anna Henningsen <anna@addaleax.net>
PR-URL: https://github.com/nodejs/node/pull/41490
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
GitHub does not recognize the Co-authored-by line since there is an empty line between that and the metadata lines at the end. I didn't know this and I only coincidentally noticed that GitHub did not display the correct commit authorship after pushed.
I have force-pushed the correct the commit message:
commit 4dd1f42df6ee34c1a5456862647092cb9686ec9a (HEAD -> master, upstream/master)
Author: Tobias Nießen <tniessen@tnie.de>
Date: Tue Jan 11 20:38:00 2022 +0000
src: gracefully handle errors in GetX509NameObject
PR-URL: https://github.com/nodejs/node/pull/41490
Co-authored-by: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Both messages pass core-validate-commit.
Other examples:
Metadata
Metadata
Assignees
Labels
Priority: HighIssues/Bugs the needs to be fixed quickly.Issues/Bugs the needs to be fixed quickly.bug
Activity
rules: add co-authored-by-is-trailer
rules: add co-authored-by-is-trailer
tniessen commentedon Jan 14, 2022
I've opened nodejs/core-validate-commit#93 to enable
core-validate-committo detect this problem.targos commentedon Jan 18, 2022
Ideally,
git node landshould detect that there are trailers (not only Co-authored-by) and add its own trailers after them without the additional new line.tniessen commentedon Jan 18, 2022
With nodejs/core-validate-commit#93,
git node landat least doesn't do that silently anymore:tniessen commentedon Jan 18, 2022
@nodejs/collaborators If you use
git node landlocally, please update its dependencies to have at least https://github.com/nodejs/core-validate-commit/tree/v3.14.0.(Sorry about the notification!)
ci: respect existing trailers in commit messages
fix: respect existing trailers in commit messages
fix: respect existing trailers in commit messages (#632)
fix: respect existing trailers in commit messages (#632)
fix: respect existing trailers in commit messages (#632)
fix: respect existing trailers in commit messages (#632)
fix: respect existing trailers in commit messages (#632)
fix: respect existing trailers in commit messages (#632)