Repository navigation
fix lefthook - #17023
fix lefthook#17023
Conversation
📝 WalkthroughWalkthroughThe workflows and file-checking hook now preserve filenames containing whitespace or newlines through NUL-delimited Git output. Web pre-commit checks are grouped, dependency preparation is centralized, and staged Prettier and ESLint commands run from the web root. ChangesHook path handling and web pre-commit checks
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
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 |
31188e3 to
16d50fa
Compare
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 `@lefthook.yml`:
- Around line 93-110: Update the web-prettier and web-eslint jobs to use
Lefthook’s native root option targeting the web directory, while keeping their
existing web/ glob patterns unchanged. Replace the printf, sed, and xargs
pipelines with direct commands using {staged_files}, preserving the check-only
and fix behaviors and allowing filenames with spaces to be passed safely.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
No description provided.