[BAK-68] [hotfix] chat tab timezone issue #345
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
| # .github/workflows/pr_bot.yml | |
| name: Pull Request Bot | |
| on: | |
| # Pull Request 관련 이벤트 발생 시 | |
| pull_request: | |
| types: [opened, closed, reopened, synchronize] | |
| issue_comment: | |
| types: [created] | |
| pull_request_review: | |
| types: [submitted] | |
| pull_request_review_comment: | |
| types: [created] | |
| jobs: | |
| notify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # ------------------------- | |
| # 생성/동기화 알림 | |
| # ------------------------- | |
| - name: Send PR Created Notification | |
| if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize') | |
| run: | | |
| curl -X POST -H "Content-Type: application/json" \ | |
| -d '{ | |
| "username": "GitHub PR 봇", | |
| "embeds": [{ | |
| "title": "Pull Request #${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}", | |
| "description": "**${{ github.actor }}**님이 Pull Request를 생성 또는 업데이트했습니다.", | |
| "url": "${{ github.event.pull_request.html_url }}", | |
| "color": 2243312 | |
| }] | |
| }' \ | |
| ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| # ------------------------- | |
| # 댓글 알림 | |
| # ------------------------- | |
| - name: Send PR Comment Notification | |
| if: github.event_name == 'issue_comment' && github.event.issue.pull_request | |
| run: | | |
| COMMENT_BODY=$(echo "${{ github.event.comment.body }}" | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g') | |
| curl -X POST -H "Content-Type: application/json" \ | |
| -d "{ | |
| \"username\": \"GitHub 댓글 봇\", | |
| \"embeds\": [{ | |
| \"title\": \"New Comment on PR #${{ github.event.issue.number }}\", | |
| \"description\": \"**${{ github.actor }}**님의 새 댓글: \\n${COMMENT_BODY}\", | |
| \"url\": \"${{ github.event.comment.html_url }}\", | |
| \"color\": 15105570 | |
| }] | |
| }" \ | |
| ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| # ------------------------- | |
| # 머지(Merge) 알림 | |
| # ------------------------- | |
| - name: Send PR Merged Notification | |
| if: github.event.action == 'closed' && github.event.pull_request.merged == true | |
| run: | | |
| curl -X POST -H "Content-Type: application/json" \ | |
| -d '{ | |
| "username": "GitHub Merge 봇", | |
| "embeds": [{ | |
| "title": "Pull Request #${{ github.event.pull_request.number }} Merged!", | |
| "description": "**${{ github.actor }}**님이 **${{ github.event.pull_request.title }}** PR을 머지했습니다.", | |
| "url": "${{ github.event.pull_request.html_url }}", | |
| "color": 5167473 | |
| }] | |
| }' \ | |
| ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| # ------------------------- | |
| # 닫힘(Close) 알림 | |
| # ------------------------- | |
| - name: Send PR Closed Notification | |
| if: github.event.action == 'closed' && github.event.pull_request.merged == false | |
| run: | | |
| curl -X POST -H "Content-Type: application/json" \ | |
| -d '{ | |
| "username": "GitHub PR 봇", | |
| "embeds": [{ | |
| "title": "Pull Request #${{ github.event.pull_request.number }} Closed", | |
| "description": "**${{ github.actor }}**님이 **${{ github.event.pull_request.title }}** PR을 닫았습니다.", | |
| "url": "${{ github.event.pull_request.html_url }}", | |
| "color": 15219495 | |
| }] | |
| }' \ | |
| ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| # ---------------------------- | |
| # 리뷰 제출(Submit Review) 알림 | |
| # ---------------------------- | |
| - name: Send Review Submitted Notification | |
| if: github.event_name == 'pull_request_review' && github.event.action == 'submitted' | |
| run: | | |
| REVIEW_BODY=$(echo "${{ github.event.review.body }}" | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g') | |
| curl -X POST -H "Content-Type: application/json" \ | |
| -d "{ | |
| \"username\": \"GitHub 리뷰 봇\", | |
| \"embeds\": [{ | |
| \"title\": \"New Review on PR #${{ github.event.pull_request.number }}\", | |
| \"description\": \"**${{ github.actor }}**님이 리뷰를 남겼습니다: \\n${REVIEW_BODY}\", | |
| \"url\": \"${{ github.event.review.html_url }}\", | |
| \"color\": 16776960 | |
| }] | |
| }" \ | |
| ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| # ------------------------- | |
| # 리뷰 댓글에 대한 답글 알림 | |
| # ------------------------- | |
| - name: Send Review Comment Notification | |
| if: github.event_name == 'pull_request_review_comment' && github.event.action == 'created' | |
| run: | | |
| COMMENT_BODY=$(echo "${{ github.event.comment.body }}" | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g') | |
| curl -X POST -H "Content-Type: application/json" \ | |
| -d "{ | |
| \"username\": \"GitHub 댓글 봇\", | |
| \"embeds\": [{ | |
| \"title\": \"New Reply on PR #${{ github.event.pull_request.number }}\", | |
| \"description\": \"**${{ github.actor }}**님의 새 답글: \\n${COMMENT_BODY}\", | |
| \"url\": \"${{ github.event.comment.html_url }}\", | |
| \"color\": 15105570 | |
| }] | |
| }" \ | |
| ${{ secrets.DISCORD_WEBHOOK_URL }} |