diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 78cdba5..54bcb56 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -31,4 +31,4 @@ jobs: - name: Validate current commit (last commit) with commitlint run: npx commitlint --last --verbose - name: Validate PR commits with commitlint - run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose + run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose