From 20dbfc49be3adfcd3f10967945ad348c53770092 Mon Sep 17 00:00:00 2001 From: Will Molloy Date: Sat, 28 Nov 2026 00:15:23 +1100 Subject: [PATCH] ci: fetch only commit history in check-commits - Fetch commits without trees or file contents - Check out only .github/, without the root files that cone mode adds Co-Authored-By: Claude Opus 5.5 --- .github/workflows/commitlint.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 3a290fd..45560d3 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -25,8 +25,9 @@ jobs: - uses: actions/checkout@v7 with: fetch-depth: 0 - filter: blob:none - sparse-checkout: .github + filter: tree:0 + sparse-checkout: .github/ + sparse-checkout-cone-mode: false - name: Install commitlint run: npm install --no-save @commitlint/cli@$COMMITLINT_VERSION @commitlint/config-conventional@$COMMITLINT_VERSION