PR 봇 Discord 편의 기능 (리액션·스레드 정리·고정) + 헬퍼 공유화 - #673
Conversation
- 상태 전이형 리액션(piki_open/wip/done/closed) 관리 스텝 추가 — 이전 상태 제거 후 현재 상태만 표시 - opened·ready_for_review 시 부모 메시지 채널 고정 - close 시 고정 해제 + 스레드 이름 갱신·아카이브·잠금 - post_parent·update·reply 에 복붙돼 있던 헬퍼 4개를 RUNNER_TEMP 공유 스크립트로 추출
|
Discord 스레드 연동용 메타데이터입니다. discord-pr-bot 워크플로가 자동 생성하며, 수정·삭제하면 PR 과 Discord 알림 연동이 끊깁니다. |
|
Warning Review limit reached
Next review available in: 3 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
느슨한 contains("discord-pr-bot") 는 discord-pr-bot.yml 파일명을 언급한
리뷰 코멘트까지 잡았다. tail -n 1 이 나중에 달린 리뷰 코멘트를 집으면
JSON 이 없어 message_id 를 못 읽고, 리액션·스레드 정리·고정 스텝이 전부
skip 됐다 (#673 머지 시 머지완료 리액션 누락으로 발견).
select 를 test("discord-pr-bot:\\s*\\{") 로 좁혀 JSON 시작 마커가 있는
metadata 코멘트만 매칭한다. #673 코멘트로 실측: OLD 2건 매칭 → NEW 1건.
Situation
Task
Action
상태 리액션 (전이형)
부모 메시지에 현재 상태를 리액션 하나로 표시한다. 유니코드 이모지 대신 PiKi 전용 커스텀 이모지 4개를 새로 만들어 브랜드 톤을 맞췄다. 상태가 바뀌면 이전 리액션을 먼저 지우고 현재 것만 남긴다(누적이 아니라 전이).
스레드·고정 정리
헬퍼 리팩터
mention·reviewer·issue·summary 헬퍼 4개가 post_parent·update·reply 세 스텝에 복붙돼 있었다. 한 곳에서 정의하고 각 스텝이 불러 쓰게 바꿨다.
$RUNNER_TEMP/discord-pr-lib.sh에 한 번 쓰고, 함수가 참조하는 REPO·DISCORD_USER_MAP 은 GITHUB_ENV 로 이후 스텝에 넘긴다.source한 줄로 대체했다.Result
연관 이슈