Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough
ChangesStatus matrix symlink handling
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@__tests__/test-statusMatrix.js`:
- Line 426: Move the symlink test block around the existing symlink setup in
__tests__/test-statusMatrix.js into an appropriate server-only.test-* file,
preserving its assertion and behavior. Remove the now-unused native fs promises
import from __tests__/test-statusMatrix.js; both affected sites in that file
require changes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6f9434fb-b887-4f82-8590-24c876a92921
📒 Files selected for processing (2)
__tests__/test-statusMatrix.jssrc/models/GitWalkerFs.js
|
Please run: to fix linting errors |
|
Thanks for the PR. |
|
🎉 This PR is included in version 1.38.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Fixes #1215.
When a repository contains a symlink targeting an ignored directory (such as
node_modules),statusMatrix()was previously traversing the symlink target becauseGitWalkerFs.readdir()calledfs.readdir(), which follows directory symlinks. As a result, files within the ignored directory were incorrectly reported as untracked/new files.This change adds a check in
GitWalkerFs.readdir()to ensurereaddiris only performed ontreeentries (actual directories), matching the behavior ofGitWalkerRepoandGitWalkerIndex.Changes Made
src/models/GitWalkerFs.js: Addedif ((await entry.type()) !== 'tree') return nullinsideGitWalkerFs.readdir(entry).__tests__/test-statusMatrix.js: Added unit teststatusMatrix with symlink targeting ignored directoryto prevent regression.Verification
statusMatrix()output matches nativegit status --porcelain=v1.Summary by CodeRabbit
Bug Fixes
Tests