Repository navigation
[chore] CodeRabbit 자동 리뷰 대상을 develop 브랜치로 제한 - #68
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 개요 (why, what)
develop → main릴리스 PR에도 CodeRabbit이 자동 리뷰를 달고 있어,develop에서 이미 리뷰된 변경에 대해 중복 리뷰가 발생하고 릴리스 PR에 불필요한 요약·워크스루 코멘트가 쌓임.coderabbit.yaml에base_branches가 없어 조직(Organization) 레벨 설정이 그대로 적용되고 있고, 저장소 차원에서 자동 리뷰 대상 브랜치를 통제하지 못하는 상태reviews.auto_review.base_branches를develop으로 명시해 자동 리뷰 대상을develop대상 PR로 한정🛠️ 구현 방법 (how)
기본 브랜치 + base_branches를 자동 리뷰 대상으로 삼음. 이 저장소 기본 브랜치가develop이므로 대상이develop하나로 고정됨.coderabbit.yaml이 조직 레벨 설정보다 우선하므로, org 설정에main이 포함돼 있어도 이 파일이 덮어씀develop → mainPR에서 CodeRabbit은 base 브랜치(main)의.coderabbit.yaml을 읽으므로, 이 변경이main에 머지된 이후의 릴리스 PR부터 효과 발생. 그 전 릴리스 PR은 본문에@coderabbitai ignore로 개별 처리🤔 검토한 대안과 선택 이유 (trade-off)
base_branches: ["develop"]main으로 직접 가는 hotfix PR도 자동 리뷰에서 빠짐 (필요 시@coderabbitai review수동 트리거 필요)labels: ["!no-review"]no-review라벨 부착을 매번 기억해야 함💭 리뷰 포인트
📚 Reference (Optional)
.coderabbit.yaml설정 레퍼런스: https://docs.coderabbit.ai/reference/configuration