-
Notifications
You must be signed in to change notification settings - Fork 82
43 lines (42 loc) · 1.8 KB
/
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
on:
pull_request:
types: [review_requested]
jobs:
notify:
if: github.actor != 'plenty-cicd-2'
runs-on: ubuntu-latest
steps:
- name: Push release notification
run: |
curl --location --request POST '${{ secrets.CHAT_WEBHOOK }}' \
--header 'Content-Type: application/json' \
--data-raw '{
"cardsV2": [
{
"cardId": "${{ github.event.pull_request.id }}",
"card": {
"header": {
"title": "Boilerplate Review Required",
"subtitle": "${{ github.event.pull_request.title }}"
},
"sections": [
{
"widgets": [
{
"buttonList": {
"buttons": {
"text": "Open PR",
"onClick": {
"openLink": {
"url": "https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}"
}
}
}
}
}
]
}
]
}
}
]}'