feat: PR diff inline 코멘트 알림 핸들러 추가#5
Draft
dohyun-ko wants to merge 2 commits into
Draft
Conversation
Files Changed 탭에서 inline 으로 달리는 코멘트 (pull_request_review_comment 이벤트) 알림 핸들러 신규 추가. 기존 issue_comment 패턴과 동일하게 본문은 100 rune 이내로 truncate + escape 후 두 번째 블록으로 첨부. title 에는 파일 경로와 라인 번호 링크를 포함. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
3 tasks
…er has body 리뷰어가 Files Changed 탭에서 inline 코멘트를 N개 달면 알림이 N번 떨어지던 문제 개선. 같은 review_id 의 inline 이벤트는 처음 1개만 처리하고 나머지는 skip 한다 (sync.Map 기반 in-memory dedup, 1h TTL). 추가로, review wrapper 본문이 비어있을 때만 inline 알림을 보낸다. wrapper 본문이 있으면 PullRequestReviewEventSubmitted 핸들러가 처리할 수 있도록 양보. 이를 위해 github.Service.FetchReview 추가. 전제: 봇이 single replica. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Files Changed 탭 inline 코멘트 (`pull_request_review_comment` 이벤트) 알림 핸들러 신규 추가 + 다음 두 가지 노이즈 감소 처리.
동작
결과 매트릭스 (한 리뷰 submit 기준)
Notes
Test plan
🤖 Generated with Claude Code