-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (40 loc) · 1.31 KB
/
discord-pr-notify.yml
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
name: Discord PR
on:
pull_request:
branches: ["dev-be"]
paths: 'backend/**'
jobs:
create-issue:
name: Discord notification
runs-on: ubuntu-latest
steps:
- name: Send PR
uses: Ilshidur/[email protected]
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
DISCORD_USERNAME: Bang_GGood_Master
DISCORD_EMBEDS: >
[
{
"title": "똑똑~ 방 리모델링 요청이 왔어요!🏠\n${{ github.event.pull_request.title }}",
"color": 16777123,
"description": "${{ github.event.pull_request.html_url }}",
"fields": [
{
"name": "Pull Request Number",
"value": "#${{ github.event.pull_request.number }}",
"inline": true
},
{
"name": "Author",
"value": "${{ github.event.pull_request.user.login }}",
"inline": true
},
{
"name": "Reviewers",
"value": "${{ join(github.event.pull_request.requested_reviewers.*.login, ', ') }}",
"inline": false
}
]
}
]