From 3e8c816f2e4bdb9ca528994248a1d604d410317c Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 4 Mar 2026 16:43:14 +0000 Subject: [PATCH] tools: fix example in release proposal linter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `changelog-maker` writes 10 character length short form SHA's. Explicitly set the `git log format` in the example to match. PR-URL: https://github.com/nodejs/node/pull/62074 Reviewed-By: Tierney Cyren Reviewed-By: Luigi Pinca Reviewed-By: Ulises Gascón Reviewed-By: Stewart X Addison Reviewed-By: Colin Ihrig --- tools/actions/lint-release-proposal-commit-list.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/actions/lint-release-proposal-commit-list.mjs b/tools/actions/lint-release-proposal-commit-list.mjs index 9bbc7159fbf..a51f0c59002 100755 --- a/tools/actions/lint-release-proposal-commit-list.mjs +++ b/tools/actions/lint-release-proposal-commit-list.mjs @@ -6,6 +6,7 @@ // Example: // $ git log upstream/vXX.x...upstream/vX.X.X-proposal \ // --reverse --format='{"prURL":"%(trailers:key=PR-URL,valueonly,separator=)","title":"%s","smallSha":"%h"}' \ +// --abbrev=10 \ // | sed 's/,"title":"Revert "\([^"]\+\)""/,"title":"Revert \\"\1\\""/g' \ // | ./lint-release-proposal-commit-list.mjs "path/to/CHANGELOG.md" "$(git rev-parse upstream/vX.X.X-proposal)"