Skip to content

feat: PR 리뷰 알림에 본문 포함#4

Open
dohyun-ko wants to merge 1 commit into
mainfrom
dohyun-ko/pr-review-body
Open

feat: PR 리뷰 알림에 본문 포함#4
dohyun-ko wants to merge 1 commit into
mainfrom
dohyun-ko/pr-review-body

Conversation

@dohyun-ko
Copy link
Copy Markdown
Member

@dohyun-ko dohyun-ko commented May 18, 2026

Summary

  • PR Review (Approve / Comment / Request changes) 시 본문이 있으면 알림 메시지에 포함
  • IssueCommentCreated 와 동일한 패턴: 100 rune truncate + EscapedString
  • 본문이 비어있는 경우 (예: 본문 없이 Approve만) 블록 추가 안 함

Test plan

  • PR Review에 본문 작성 후 Submit → 알림에 본문 포함되는지 확인
  • 본문 없이 Approve만 → 알림에 title만 표시되는지 확인
  • 100자 초과 시 `...` 으로 잘리는지 확인

🤖 Generated with Claude Code

Summary by CodeRabbit

릴리스 노트

  • 개선 사항
    • Pull Request 리뷰 이벤트 메시지에 리뷰 본문 내용이 포함되도록 개선했습니다. 이제 리뷰 승인(approved) 및 코멘트(commented) 이벤트에서 제목과 함께 리뷰 본문이 표시됩니다.

Review Change Stack

Approve/Comment/Request changes 시 본문이 있으면 100 rune 이내로 잘라서
escape 후 두 번째 블록으로 첨부. 본문이 비어있으면 추가하지 않음.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@channeltalk
Copy link
Copy Markdown

channeltalk Bot commented May 18, 2026

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 18, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e1aeec26-96b1-4c53-ad52-9e92c0657c6c

📥 Commits

Reviewing files that changed from the base of the PR and between ae0d086 and 147cc8f.

📒 Files selected for processing (1)
  • internal/event/callback/pull_request.go

전체 변경사항 요약

풀 리퀘스트 리뷰 제출 이벤트 메시지 생성 로직이 제목만 포함하던 구조에서 제목과 본문을 모두 포함하는 블록 배열 구조로 변경되었습니다. 리뷰 본문은 길이 제한과 이스케이프 처리를 거쳐 메시지에 추가됩니다.

변경사항

PR 리뷰 이벤트 메시지 구성

Layer / File(s) 요약
메시지 블록 구성 수정
internal/event/callback/pull_request.go
PullRequestReviewEventSubmitted.buildMessage 메서드가 blocks 배열 기반 메시지 구성으로 변경되어, 리뷰 제목에 더하여 리뷰 본문(있을 경우)을 truncateRunes로 길이 제한 후 이스케이프 처리하여 메시지에 포함

예상 코드 리뷰 노력

🎯 1 (단순) | ⏱️ ~5 분

관련된 가능성 있는 PR

  • channel-io/cht-app-github#3: 유사하게 buildMessage에서 메시지 blocks에 본문을 truncateRunes로 길이 제한 후 model.EscapedString으로 이스케이프하여 조건부로 추가하는 로직을 다룸

제안 리뷰어

  • gwolves
  • huGgW
  • Dylan-KW

🐰 리뷰 본문 추가되어
메시지가 풍성해졌네요
제목만으로는 부족했던
리뷰 댓글의 속마음
이제 들릴 것 같아요 ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR 제목은 주요 변경사항인 '리뷰 본문을 PR 알림에 포함'을 명확하게 요약하고 있으며, 간결하고 구체적입니다.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dohyun-ko/pr-review-body

Comment @coderabbitai help to get the list of available commands and usage tips.

@dohyun-ko dohyun-ko marked this pull request as ready for review May 18, 2026 08:51
@dohyun-ko dohyun-ko requested a review from Dylan-KW May 18, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant