feat: 알림 메시지 외부화 및 환경별 PushGateway 분리#133
Merged
Merged
Conversation
푸시 알림 내용이 의도대로 나가는지 로컬에서 쉽게 확인 가능
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.
📝 요약(Summary)
이번 PR에서는 알림 메시지를 코드에서 떼어내서 설정 파일(YAML)로 관리하게 바꿨고,
환경마다 PushGateway가 다르게 동작하도록 분리했어요.
1. 알림 메시지 외부화
config/notification-messages.yml파일 추가NotificationMessagesConfig클래스로 메시지를 불러오고,ActionNotificationRenderer에서 템플릿 기반으로 메시지 만드는 구조로 변경했어요.{actorName},{comment}같은 변수를 치환해서 메시지를 만들 수 있어요.2. 환경별 PushGateway 분리
FcmPushGateway(실제로 푸시 전송)LocalPushGateway(푸시 대신 콘솔에 모의 전송 로그 출력)기대 효과
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.