From 36a8ff26a1b07b021def8a2634b41e4c7adc5b98 Mon Sep 17 00:00:00 2001 From: Chapman Pendery Date: Mon, 16 Mar 2026 18:32:17 -0700 Subject: [PATCH] fix: only use commitlint on main Signed-off-by: Chapman Pendery --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc3eac3..c62528c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,8 @@ jobs: run: npm ci - name: Run commitlint - if: github.event_name == 'pull_request' - run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --verbose + if: github.event_name == 'push' + run: npx commitlint --from ${{ github.event.before }} --to ${{ github.event.after }} --verbose - name: setup macOS shells if: matrix.os == 'macos-latest'