Conversation
- pre-commit: staged 파일에 prettier --write, eslint 순으로 실행 - post-checkout: yarn.lock 변경 시 yarn install 자동 실행
📝 관련 이슈 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughCI 환경에서 Husky를 비활성화하는 환경변수 추가, Husky 훅 두 개( Changes
Poem
🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.husky/post-checkout:
- Around line 1-3: The hook currently relies on reflog via HEAD@{1}; update the
git diff invocation to use the post-checkout hook parameters by replacing
HEAD@{1} and HEAD with the provided variables "$1" and "$2" (and quote them),
e.g. use git diff --name-only "$1" "$2" | grep -q 'yarn.lock'; keep the echo and
yarn install behavior unchanged and consider using "$3" if you need to
branch-checkout-specific logic.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 6a7e144a-bb65-4578-b446-65c665c6f3ce
⛔ Files ignored due to path filters (1)
yarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (5)
.github/workflows/prod-ci-cd.yml.husky/post-checkout.husky/pre-commit.prettierignorepackage.json
- reflog 의존성 제거 ($1, $2 사용) - 브랜치 체크아웃이 아닌 경우 스킵 ($3 체크 추가) ref: #33 (comment)
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
ongheong
left a comment
There was a problem hiding this comment.
프리티어 설정이 자꾸 사라져서 곤란했는데 이렇게 husky로 커밋 전에 검사할 수 있게 적용해주셔서 감사해요!!!🥹
다음 작업부터 바로 사용해보겠습니다🥰
💻 작업 내용
prettier 오류로 고생하시는 여은님을 위해.... 🥹lint, prettier 체크 자동화를 위해 husky를 설정했습니다.
그리고 의존성 업데이트되었을 때마다 신경써서 설치하는게 좀 번거로울 것 같아서 ... 브랜치를 이동했을 때 의존성이 변경되었다면 yarn install을 실행하는 훅도 추가했어요!!
추가한 훅 :
pre-commit
커밋 직전에 staged 파일을 대상으로 prettier 자동 수정 -> eslint 검사를 순서대로 실행합니다.
post-checkout
브랜치 전환 시에 yarn.lock 파일을 확인하고 변경된 경우 yarn install을 자동으로 실행합니다.
참고 : https://teamblog.joonggonara.co.kr/웹개발팀-모노레포-2-husky-설정-2f7503d999a0
📸 스크린샷
Screen_Shot.2026-04-15.16.41.48.mov
Summary by CodeRabbit
새로운 기능
개선사항