-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (58 loc) ยท 1.86 KB
/
opened-pr-notification.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Opened PR Notification
on:
pull_request:
branches:
- dev
- main
types:
- opened
jobs:
create-issue:
name: PR opened notification to slack
runs-on: ubuntu-latest
steps:
- name: Send opened PR notification
uses: slackapi/[email protected]
with:
payload: |
{
"text": "*์๋ก์ด PR์ด ์์ฑ๋์์ต๋๋ค!*",
"attachments": [
{
"color": "#1F7629",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Title*\n<${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}>"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Base branch*\n${{ github.base_ref }}"
},
{
"type": "mrkdwn",
"text": "*Compare branch*\n${{ github.head_ref }}"
},
{
"type": "mrkdwn",
"text": "*PR number*\n#${{ github.event.pull_request.number }}"
},
{
"type": "mrkdwn",
"text": "*Author*\n${{ github.event.pull_request.user.login }}"
}
]
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PR_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK