fix: match nested review sources before the node_modules exclude #302
Mergedviclafouch(GitHub profile, opens in a new tab)merged 2 commits into
main fromrefs/pull/302/headmerged by LadyBluenotes(GitHub profile, opens in a new tab) - @@ -404,4 +404,4 @@404404 '--exclude-standard',405405 '-z',406406 '--',407- ...patterns,407+ // Git drops matches when one include precedes the exclude (#301).
LadyBluenotes(GitHub profile, opens in a new tab) requested changes
LadyBluenotes(GitHub profile, opens in a new tab) approved these changes
Sign in to join this conversation.
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Advanced
Run ID:
39e684af-345f-497a-912c-4ff4915e87c2📥 Commits
Reviewing files that changed from the base of the PR and between 5bebfd29498f7140d5caf05eebba3381dba89c92 and f8932af9d539039fc57c09e85be9019b85ee9533.
📒 Files selected for processing (2)
packages/intent/src/review/review.tspackages/intent/tests/review.test.tsIncluded review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
📝 Walkthrough
Walkthrough#
The review file-list call now places the dependency exclusion before supplied source patterns. A regression test checks that a nested source glob finds its file without reporting problems.
Changes#
Review source matching
packages/intent/src/review/review.ts,packages/intent/tests/review.test.ts,.changeset/review-source-pathspec-order.mdPriority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers:
ladybluenotesMerge Risk: ⚪ Minimal · up to
f8932This fix lets the review command match nested source paths that previously reported no available files. The change is small, tested, and narrowly scoped, so there are no known merge-blocking risks.
Architecture Summary#
Architecture risk: 🟡 Medium · up to
f8932The change affects 1 system.
Changed systems:
packages/intentArchitecture concerns No architecture-level concerns identified.
Review details
Systems and components
Before / after behavior
listhelper now orders Git pathspecs withdependencyExcludebefore caller-supplied patterns; previously the patterns preceded the dependency exclusion.src/node_modules, then checks that the review has no problems and snapshots only the package source file and the skill.@tanstack/intentand a changeset note describing the reported nested-source path-matching failure.Reliability and maintainability
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)#
✅ Passed checks (4 passed)
#301requiresreviewto passdependencyExcludebefore source patterns inlist().packages/intent/src/review/review.tschanges the argument order. The addedreview.test.tscase verifies…#301. The regression test verifies the required behavior. The changeset documents the user-facing fix. No unrelated change is identified in the supplied who…✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share