Skip to content

feat: NoAutoFetch parity for summarizePr/summarizeDiff + gitignore cleanup#211

Merged
SimplyLiz merged 2 commits intodevelopfrom
feat/auto-fetch-parity-housekeeping
Apr 15, 2026
Merged

feat: NoAutoFetch parity for summarizePr/summarizeDiff + gitignore cleanup#211
SimplyLiz merged 2 commits intodevelopfrom
feat/auto-fetch-parity-housekeeping

Conversation

@SimplyLiz
Copy link
Copy Markdown
Owner

Summary

Closes two loose ends from the 9.0.1 / 9.1.0 shallow-CI-clone work.

  • Parity fix — 9.1.0 added --no-auto-fetch / ReviewPROptions.NoAutoFetch, but summarizePr (pr.go) and summarizeDiff (navigation.go) still auto-fetched unconditionally. Air-gapped MCP/HTTP callers now have a consistent opt-out across all three review-adjacent tools.
  • Housekeeping — add /ckb_fresh and *.test to .gitignore so local dev-build binaries and compiled Go test binaries in repo root stop showing as untracked.

Details

SummarizePROptions.NoAutoFetch — when true, routes through VerifyRef (local-only rev-parse check) instead of EnsureRef (fetches on miss). Same pattern already used in review.go.

SummarizeDiffOptions.NoAutoFetch — applies to the CommitRange path where user-supplied base/head refs are resolved. Other selectors (Commit, TimeWindow) operate on local SHAs so they're unaffected.

No CLI flags added — these two tools are MCP/HTTP-only.

Test plan

  • go build ./... clean
  • go test ./internal/query/ ./internal/backends/git/ passes
  • Verified ckb_fresh / scip.test no longer surface in git status
  • Manual: MCP caller with noAutoFetch: true fails cleanly on missing ref instead of fetching

🤖 Generated with Claude Code

SimplyLiz and others added 2 commits April 15, 2026 14:18
The 9.1.0 --no-auto-fetch opt-out was only wired through ReviewPROptions.
summarizePr (pr.go) and summarizeDiff (navigation.go) still auto-fetched
unconditionally, giving air-gapped callers inconsistent behavior across
the three review-adjacent MCP tools.

Add NoAutoFetch to both options structs; route through VerifyRef
(local-only) instead of EnsureRef when set.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ckb_fresh is a dev-build binary that kept showing up as untracked;
*.test catches Go test binaries like scip.test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@SimplyLiz SimplyLiz merged commit ecac0c1 into develop Apr 15, 2026
8 of 9 checks passed
@github-actions
Copy link
Copy Markdown

🟢 Change Impact Analysis

Metric Value
Risk Level LOW 🟢
Files Changed 4
Symbols Changed 4
Directly Affected 0
Transitively Affected 0

Blast Radius: 0 modules, 0 files, 0 unique callers

📝 Changed Symbols (4)
Symbol File Type Confidence
.gitignore .gitignore modified 30%
CHANGELOG.md CHANGELOG.md modified 30%
internal/query/navigation.go internal/query/navigation.go modified 30%
internal/query/pr.go internal/query/pr.go modified 30%

Recommendations

  • ℹ️ coverage: 4 symbols have low mapping confidence. Index may be stale.
    • Action: Run 'ckb index' to refresh the SCIP index

Generated by CKB

@github-actions
Copy link
Copy Markdown

CKB Analysis

Risk Files +28 -9 Modules

🎯 4 changed → 0 affected · 🔥 3 hotspots · 📊 2 complex · 📚 197 stale

Risk factors: Touches 3 hotspot(s)

👥 Suggested: @lisa.welsch1985@gmail.com (100%), @talantyyr@gmail.com (50%), @lisa@tastehub.io (75%)

Metric Value
Impact Analysis 4 symbols → 0 affected 🟢
Doc Coverage 6.598984771573605% ⚠️
Complexity 2 violations ⚠️
Coupling 0 gaps
Blast Radius 0 modules, 0 files
Index indexed (0s) 🆕
🎯 Change Impact Analysis · 🟢 LOW · 4 changed → 0 affected
Metric Value
Symbols Changed 4
Directly Affected 0
Transitively Affected 0
Modules in Blast Radius 0
Files in Blast Radius 0

Symbols changed in this PR:

Recommendations:

  • ℹ️ 4 symbols have low mapping confidence. Index may be stale.
    • Action: Run 'ckb index' to refresh the SCIP index
🔥 Hotspots · 3 volatile files
File Churn Score
CHANGELOG.md 13.40
internal/query/navigation.go 8.27
internal/query/pr.go 8.30
📊 Complexity · 2 violations
File Cyclomatic Cognitive
internal/query/navigation.go ⚠️ 59 ⚠️ 181
internal/query/pr.go ⚠️ 26 ⚠️ 43
💡 Quick wins · 10 suggestions
📚 Stale docs · 197 broken references

Generated by CKB · Run details

@github-actions
Copy link
Copy Markdown

CKB Review: ✅ PASS — 100/100

0 files (+0 changes) · 0 modules

Check Status Detail

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

❌ Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/query/pr.go 0.0% 11 Missing ⚠️
internal/query/navigation.go 0.0% 5 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.0%) is below the target coverage (30.0%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##           develop    #211   +/-   ##
=======================================
  Coverage     43.3%   43.3%           
=======================================
  Files          527     527           
  Lines        81317   81325    +8     
=======================================
+ Hits         35232   35241    +9     
- Misses       43612   43614    +2     
+ Partials      2473    2470    -3     
Flag Coverage Δ
unit 43.3% <0.0%> (+<0.1%) ⬆️

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

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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