From 14825d63c0628b2e9f96c8b231a8870acdbcab9f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 31 Oct 2021 15:16:48 +0100 Subject: tools: fix commit-lint workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/40673 Reviewed-By: Rich Trott Reviewed-By: Michaƫl Zasso --- .github/workflows/commit-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index 42e9dc05283..f362f6103f7 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -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 -- cgit v1.2.3