-
Notifications
You must be signed in to change notification settings - Fork 27
52 lines (51 loc) · 1.38 KB
/
issues.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
name: 飞书通知
on:
issues:
types:
- opened
- edited
issue_comment:
types:
- created
jobs:
send_notification:
runs-on: ubuntu-latest
steps:
- name: 发送消息
env:
FEISHU_WEBHOOK_URL: ${{ secrets.FEISHU_ISSUES_WEBHOOK_URL }}
run: |
curl -X POST -H 'Content-Type: application/json' -d '{
"msg_type": "interactive",
"card": {
"header": {
"title": {
"tag": "plain_text",
"content": "Github issues"
},
"template": "blue"
},
"elements": [
{
"tag": "div",
"text": {
"tag": "lark_md",
"content": "[${{ github.event.issue.title }}](${{ github.event.issue.html_url }})"
}
},
{
"tag": "action",
"actions": [
{
"tag": "button",
"text": {
"tag": "plain_text",
"content": "快速查看"
},
"url": "${{ github.event.issue.html_url }}"
}
]
}
]
}
}' $FEISHU_WEBHOOK_URL