Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2021-10-31 17:16:48 +0300
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2021-11-01 21:57:30 +0300
commit14825d63c0628b2e9f96c8b231a8870acdbcab9f (patch)
treecacc59c208e88280cf5e75e495b0c2172ec376a5 /.github
parentda8284449323c6e2f99c8e0b8ec770091147d4ab (diff)
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>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/commit-lint.yml2
1 files changed, 1 insertions, 1 deletions
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