From 886b339d9f2ed53c684c4ff8b825d73de7a598df Mon Sep 17 00:00:00 2001 From: Kyle Huang Junyuan Date: Fri, 19 Jul 2024 16:37:53 +0800 Subject: [PATCH] ci: target from base sha --- .github/workflows/linters.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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