Skip to content

feat [github, slack-blocks, mumu]: PR 리뷰 재요청 Slack 알림 추가#33

Open
namdaeun wants to merge 3 commits intomainfrom
feat/re-request-review
Open

feat [github, slack-blocks, mumu]: PR 리뷰 재요청 Slack 알림 추가#33
namdaeun wants to merge 3 commits intomainfrom
feat/re-request-review

Conversation

@namdaeun
Copy link
Copy Markdown
Member

작업 내용

  • GitHub review_requested webhook 이벤트를 위한 Zod 스키마 및 타입 추가 (pullRequestReviewRequestedSchema)
  • PR 리뷰 재요청 Slack 메시지 블록 (PR_재리뷰) 추가
  • mumu 서버에 review_requested 액션 핸들러 추가
  • 기존 PR Slack 스레드에 리뷰 재요청 reply를 전송하는 createPullRequestReRequestedReply 함수 추가

Copy link
Copy Markdown
Member

@jeonghoon11 jeonghoon11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생했어요!! 최고의 챕터장을 둬서 많이 배우네요 🥹 잘 쓸게욥!!!

};

/** PR 스레드에 리뷰 재요청 reply를 생성합니다. */
export const createPullRequestReRequestedReply = async (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 함수가 바로 위의 createPullRequestReviewCommentReply와 동작이 거의 같아 보이는것 갘아요! Slack에 보낼 메시지를 만드는 부분만 다르고 thread 조회, chat.postMessage 호출, 실패 처리 흐름은 동일한 것 같아요. 그래서 두 함수를 그대로 유지하면서 둘다 reply에 해당하는 내용이니 공통 reply 전송 로직만 내부 함수로 분리하는건 어떤가욥??

Comment on lines +25 to +31
{
type: "section",
text: {
type: "mrkdwn",
text: `> *PR:* <${prUrl}|#${prNumber} ${title}>`,
},
},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

처음 스레드가 만들어질 때 PR과 PR번호, 제목이 보이는데 스레드에 코멘트가 쌓였을 때 상단으로 이동하지 않고 바로 확인하기 위해서 넣은건가욥?? Just Wonder!

@jeonghoon11 jeonghoon11 self-requested a review April 23, 2026 04:33
Copy link
Copy Markdown
Member

@ExceptAnyone ExceptAnyone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~ 바로 어푸할게용

Comment on lines +9 to +11

export const blocks = (payload: PullRequestReviewRequested, options: PR리뷰재요청Options): KnownBlock[] => {
const { pull_request } = payload;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

예전에 주용님 리뷰에도 달았던건데, blocks가 뭘 의미하는건가요?

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.

3 participants