Skip to content

Commit 2915dbb

Browse files
authored
tools: fix example in release proposal linter
`changelog-maker` writes 10 character length short form SHA's. Explicitly set the `git log format` in the example to match.
1 parent f8d5bad commit 2915dbb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/actions/lint-release-proposal-commit-list.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// Example:
77
// $ git log upstream/vXX.x...upstream/vX.X.X-proposal \
88
// --reverse --format='{"prURL":"%(trailers:key=PR-URL,valueonly,separator=)","title":"%s","smallSha":"%h"}' \
9+
// --abbrev=10 \
910
// | sed 's/,"title":"Revert "\([^"]\+\)""/,"title":"Revert \\"\1\\""/g' \
1011
// | ./lint-release-proposal-commit-list.mjs "path/to/CHANGELOG.md" "$(git rev-parse upstream/vX.X.X-proposal)"
1112

0 commit comments

Comments
 (0)