From 65db0cd9056f51a0f0a3592c6828ff0fc1feb2bc Mon Sep 17 00:00:00 2001 From: Sean Sica <23294618+seansica@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:47:07 -0400 Subject: [PATCH] ci: fix commitlint run command in CI workflow --- .github/workflows/ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc271f3..173250b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,5 @@ jobs: node-version: '22.x' - name: Install dependencies run: npm ci - - name: Run commitlint - run: | - # Get the range of commits to check since the last push - COMMIT_RANGE=$(git rev-parse HEAD^1)..HEAD - npx commitlint --from=${COMMIT_RANGE} + - name: Validate all commits from push + run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose \ No newline at end of file