-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.48 KB
/
opened-pr-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
name: Opened PR Notification
on:
pull_request:
types:
- opened
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Send notification
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: |
[
{
"author": {
"name": "${{ github.event.pull_request.user.login }}",
"url": "https://github.com/user-attachments/assets/2e1aadea-149e-4bef-ab67-1c6c6b8c21cd",
"icon_url": "${{ github.event.pull_request.user.avatar_url }}"
},
"title": "신규 PR이 등록되었습니돠! 24시간내로 리뷰해주세요! 🥳\n#${{ github.event.pull_request.number }} : ${{ github.event.pull_request.title }}",
"color": 10478271,
"description": "${{ github.event.pull_request.html_url }}",
"fields": [
{
"name": "Base Branch",
"value": "${{ github.base_ref }}",
"inline": true
},
{
"name": "Compare Branch",
"value": "${{ github.head_ref }}",
"inline": true
}
]
}
]