Skip to content

ci: fetch only commit history in check-commits - #281

Merged
will-molloy merged 1 commit into
mainfrom
commitlint-history-only-checkout
Nov 27, 2026
Merged

will-molloy merged 1 commit into
mainfrom
commitlint-history-only-checkout

Conversation

@will-molloy

Copy link
Copy Markdown
Owner

🤖 Drafted by Claude Code.

check-commits now fetches only the commits it lints and checks out only .github/.

Proposed changes

  • Fetch history with filter: tree:0, which downloads commit messages and parents but no trees or file contents
  • Check out only .github/ with cone mode off
    • Cone mode always adds root files, so a repo with a root package.json would make npm install pull in every project dependency

Notes

  • Matches react-template, so both templates' commitlint.yml stay identical

🤖 Generated with Claude Code

- 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 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.42%. Comparing base (8f421f3) to head (20dbfc4).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #281   +/-   ##
=========================================
  Coverage     71.42%   71.42%           
  Complexity        4        4           
=========================================
  Files             2        2           
  Lines             7        7           
=========================================
  Hits              5        5           
  Partials          2        2           
Flag Coverage Δ
integration-tests-macos-latest 80.00% <ø> (ø)
integration-tests-ubuntu-latest 80.00% <ø> (ø)
integration-tests-windows-latest 80.00% <ø> (ø)
unit-tests-macos-latest 71.42% <ø> (ø)
unit-tests-ubuntu-latest 71.42% <ø> (ø)
unit-tests-windows-latest 71.42% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@will-molloy
will-molloy marked this pull request as ready for review November 27, 2026 13:26
@will-molloy
will-molloy merged commit 33f1164 into main Nov 27, 2026
11 checks passed
@will-molloy
will-molloy deleted the commitlint-history-only-checkout branch November 27, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant