Skip to content

[DEPLOY] 260829 - #843

Merged
whqtker merged 2 commits into
masterfrom
develop
Aug 29, 2026
Merged

[DEPLOY] 260829#843
whqtker merged 2 commits into
masterfrom
develop

Conversation

@whqtker

@whqtker whqtker commented Aug 29, 2026

Copy link
Copy Markdown
Member

No description provided.

whqtker and others added 2 commits August 29, 2026 19:55
* feat: 디스코드 webhook 메시지 편집 기능 추가

검수 결과를 표시하려면 이미 전송한 알림 메시지를 수정할 수 있어야 하므로
editMessage 를 추가한다.

- webhook 은 자신이 보낸 메시지를 봇 권한 없이 편집할 수 있다.
- SimpleClientHttpRequestFactory 는 PATCH 를 지원하지 않으므로
  webhook 전송용 팩토리를 JDK HttpClient 기반으로 교체한다.
- webhook url 에 쿼리스트링이 붙어 있을 수 있어 경로 뒤에 이어붙이지 않는다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* refactor: DiscordNotifier 설정 값을 생성자로 주입

필드 주입은 테스트에서 인스턴스를 직접 만들 수 없어 리플렉션을 요구한다.
동작은 그대로 두고 주입 방식만 바꾼다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix: 성적 승인 시 디스코드 이모지 요청 실패로 발생하는 500 에러 해결

봇이 알림 채널에 초대되어 있지 않아 반응 요청이 403 Missing Access 를 받고,
예외가 검수 트랜잭션 밖으로 전파되어 롤백되면서 500 이 반환되었다.
봇을 초대하지 않기로 하여 표시 방식을 webhook 메시지 편집으로 바꾼다.

- 검수 시점 데이터로 본문을 다시 만들어 마커와 함께 덮어쓴다.
  본문을 새로 만들므로 재검수해도 마커가 누적되지 않는다.
- notify 와 동일하게 webhook url 이 없거나 local 이면 아무것도 하지 않는다.
- 편집 대상 메시지가 삭제된 경우(404)는 재시도해도 성공하지 않으므로
  검수를 실패시키지 않는다. 그 외 실패는 기존과 같이 전파한다.
- 더 이상 호출하지 않는 봇 반응 클라이언트를 제거한다.

Fixes #840

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* refactor: DiscordReactionEmoji 를 DiscordReviewMarker 로 개명

반응(reaction)이 아니라 알림 메시지에 붙이는 마커이므로 이름을 동작에 맞춘다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* refactor: 사용하지 않는 디스코드 봇 RestTemplate 제거

봇 반응 클라이언트가 사라져 discordBotRestTemplate 을 주입받는 곳이 없다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
봇을 초대하지 않아 반응(reaction)을 사용할 수 없어 알림 본문에 결과를 표시하는데,
이모지보다 문구가 결과를 분명하게 전달한다.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d9d5913a-bbee-47e5-b487-f922e43f50bf

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

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

@whqtker
whqtker merged commit 7f09368 into master Aug 29, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant