From 0d6440e20f0d840747ffdfc8e53b6a98ec3cc9fd Mon Sep 17 00:00:00 2001 From: Rob Weiss <15364577+robjweiss@users.noreply.github.com> Date: Fri, 22 Nov 2024 14:17:45 +0900 Subject: [PATCH] docs: use GH base sha to lint PR commits --- docs/guides/ci-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/ci-setup.md b/docs/guides/ci-setup.md index de9277bf2e..2ebb948ed5 100644 --- a/docs/guides/ci-setup.md +++ b/docs/guides/ci-setup.md @@ -46,7 +46,7 @@ jobs: - name: Validate PR commits with commitlint if: github.event_name == 'pull_request' - 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 ``` ## Travis