mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
tools: fix commit-lint workflow
PR-URL: https://github.com/nodejs/node/pull/40673 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
1 parent
f45814bad1
commit
dd08e532a2
1 file changed
+1
-1
@@ -22,4 +22,4 @@ jobs:
|
||||
- name: Validate commit messages
|
||||
run: |
|
||||
echo "::add-matcher::.github/workflows/commit-lint-problem-matcher.json"
|
||||
git log --oneline ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} | grep -v -e fixup -e squash | awk '{ print $1 }' | xargs npx -q core-validate-commit --no-validate-metadata --tap
|
||||
git log --oneline -${{ github.event.pull_request.commits }} HEAD^ | awk '{ if ($2 != "fixup!" && $2 != "squash!") { print $1 } }' | xargs npx -q core-validate-commit --no-validate-metadata --tap
|
||||
Reference in new issue
Block a user