[CI] 디스코드 알림 본문 길이 제한 단일화 및 코드 정리 - #34
Merged
Merged
Conversation
clean_body의 200자 제한 제거 후 DESC 400자 단일 제한으로 통일, 불필요한 DESC 초기 할당 dead code 제거, 주석 수정을 반영했습니다. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughDiscord 알림 워크플로우에서 본문 정리와 description 생성 방식이 바뀌었습니다. ChangesDiscord 알림 본문 구성
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
📦 번들 사이즈 리포트🕐 Timo Web
빌드 커밋: |
kimminna
approved these changes
Jun 26, 2026
Merged
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.
ISSUE 🔗
close #33
What is this PR? 🔍
discord-notification.yml에서 본문 처리 로직의 이중 제한 구조를 해소하고 불필요한 dead code를 제거했습니다.배경
clean_body함수가 본문을 200자로 자른 뒤, DESC를 다시 400자로 제한하는 이중 제한 구조였습니다.pull_request,pull_request_review핸들러에서 DESC를 초기화한 뒤 즉시 덮어쓰는 dead code가 있었습니다.clean_body의 200자 제한을 제거하고 DESC 400자 단일 제한으로 통일했습니다.clean_body — 400자 단일 제한으로 통일
clean_body함수의cut -c1-200을 제거했습니다.**${PR_TITLE}**\n${CLEAN_BODY}형태로 조합된 뒤${DESC:0:400}으로 잘립니다. 제목이 짧을수록 body가 더 많이 표시되고, 제목이 길면 body가 줄어드는 구조입니다. 4개 이벤트 케이스(pull_request, pull_request_review, pull_request_review_comment, issues) 모두 동일하게 적용됩니다.Dead code 제거
pull_request,pull_request_review핸들러에서 불필요한 DESC 초기 할당 2곳을 제거했습니다.To Reviewers
${DESC:0:400}bash substring은 로케일에 따라 바이트 또는 문자 단위로 동작합니다. GitHub Actionsubuntu-latest는 기본적으로C.UTF-8로케일을 사용해 문자 단위로 잘리므로 한글이 중간에 끊기지 않습니다.Screenshot 📷
Test Checklist ✔