-
Notifications
You must be signed in to change notification settings - Fork 0
107 lines (104 loc) · 3.75 KB
/
pr-review-noti.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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
}
]
}
]