.github/workflows/pr-review-noti.yaml #199
Workflow file for this run
This file contains 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
on: | |
pull_request_review: | |
types: [submitted] | |
jobs: | |
approved: | |
if: github.event.review.state == 'APPROVED' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Approve Message | |
uses: Ilshidur/[email protected] | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
DISCORD_USERNAME: ์ํ๊ณฐ BOT | |
DISCORD_AVATAR: https://github.com/user-attachments/assets/4f1d10bc-f782-42ef-af63-fba0f51907c5 | |
DISCORD_EMBEDS: | | |
[ | |
{ | |
"title": "PR์ด ์น์ธ๋์์ต๋๋ ! ๋จธ์งํด์ฃผ์ธ์ ~! ๐ฅณ\n${{ github.event.pull_request.title }}", | |
"color": 10478271, | |
"description": "${{ github.event.review.html_url }}", | |
"fields": [ | |
{ | |
"name": "Reviewer", | |
"value": "${{ github.event.review.user.login }}", | |
"inline": true | |
}, | |
{ | |
"name": "Comment", | |
"value": "${{ github.event.review.body }}", | |
"inline": true | |
}, | |
{ | |
"name": "State", | |
"value": "${{ github.event.review.state }}", | |
"inline": true | |
} | |
] | |
} | |
] | |
changes_requested: | |
if: github.event.review.state == 'changes_requested' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Comment Message | |
uses: Ilshidur/[email protected] | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
DISCORD_USERNAME: ์ํ๊ณฐ BOT | |
DISCORD_AVATAR: https://github.com/user-attachments/assets/4f1d10bc-f782-42ef-af63-fba0f51907c5 | |
DISCORD_EMBEDS: | | |
[ | |
{ | |
"title": "PR์ ๋ํ ์์ ์์ฒญ์ด ๋ค์ด์์ต๋๋ . ํ์ธํด์ฃผ์ธ์! โ ๏ธ\n${{ github.event.pull_request.title }}", | |
"color": 13458524, | |
"description": "${{ github.event.review.html_url }}", | |
"fields": [ | |
{ | |
"name": "Reviewer", | |
"value": "${{ github.event.review.user.login }}", | |
"inline": true | |
}, | |
{ | |
"name": "Comment", | |
"value": "${{ github.event.review.body }}", | |
"inline": true | |
}, | |
{ | |
"name": "State", | |
"value": "${{ github.event.review.state }}", | |
"inline": true | |
} | |
] | |
} | |
] | |
commented: | |
if: github.event.review.state == 'commented' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Comment Message | |
uses: Ilshidur/[email protected] | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
DISCORD_USERNAME: ์ํ๊ณฐ BOT | |
DISCORD_AVATAR: https://github.com/user-attachments/assets/4f1d10bc-f782-42ef-af63-fba0f51907c5 | |
DISCORD_EMBEDS: | | |
[ | |
{ | |
"title": "PR์ ๋ํ ์ฝ๋ฉํธ๊ฐ ๋ฑ๋ก๋์์ต๋๋ ! ํ์ธํด์ฃผ์ธ์! โ \n${{ github.event.pull_request.title }}", | |
"color": 16187019, | |
"description": "${{ github.event.review.html_url }}", | |
"fields": [ | |
{ | |
"name": "Reviewer", | |
"value": "${{ github.event.review.user.login }}", | |
"inline": true | |
}, | |
{ | |
"name": "State", | |
"value": "${{ github.event.review.state }}", | |
"inline": true | |
} | |
] | |
} | |
] |