fix: add .husky/_ to .gitignore to fix release workflow#5832
fix: add .husky/_ to .gitignore to fix release workflow#5832
Conversation
The `pnpm install` prepare hook runs `husky`, which generates `.husky/_/` directory. This directory is untracked and makes git working directory dirty, causing `scripts/version.js` clean check to fail during the Manual Release workflow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
You can also share your feedback on Copilot code review. Take the survey.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves a critical issue in the release workflow by ensuring that the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA single line was added to Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~1 minute Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
Deploying egg with
|
| Latest commit: |
d132834
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c3351684.egg-cci.pages.dev |
| Branch Preview URL: | https://fix-gitignore-husky.egg-cci.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #5832 +/- ##
=======================================
Coverage 85.62% 85.62%
=======================================
Files 665 665
Lines 13004 13004
Branches 1495 1495
=======================================
Hits 11135 11135
Misses 1745 1745
Partials 124 124 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Deploying egg-v3 with
|
| Latest commit: |
d132834
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a9a72e18.egg-v3.pages.dev |
| Branch Preview URL: | https://fix-gitignore-husky.egg-v3.pages.dev |
There was a problem hiding this comment.
Code Review
This pull request correctly adds the .husky/_ directory to the .gitignore file, which will resolve the release workflow failures caused by untracked generated files. I have one suggestion to add a comment and a blank line for this new entry to improve the file's long-term maintainability.
| .DS_Store | ||
| .tmp | ||
| .egg | ||
| .husky/_ |
There was a problem hiding this comment.
For improved maintainability, it's good practice to add a comment explaining why this entry is being ignored, especially for tool-specific generated files like Husky's. This will help other developers understand its purpose and prevent accidental removal in the future. Adding a blank line also helps to group it logically.
# husky
.husky/_
Summary
.husky/_to.gitignoreto prevent release workflow failurespnpm installrunshuskyvia thepreparehook, generating.husky/_/directory with git hook scriptsgit status --porcelainreport dirty state, causingscripts/version.jsclean check to failTest plan
.husky/_is now ignored by git🤖 Generated with Claude Code
Summary by CodeRabbit