-
Notifications
You must be signed in to change notification settings - Fork 148
51 lines (43 loc) · 1.88 KB
/
issue_content_check.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
name: Issue Content Check
on:
issues:
types: [opened]
jobs:
check-issue-content:
runs-on: ubuntu-latest
steps:
- name: Add label and comment for missing snapshots
if: |
contains(github.event.issue.body, 'i.gkd.li/') == false &&
contains(github.event.issue.body, '.zip') == false
uses: actions-cool/issues-helper@v3
with:
actions: add-labels,create-comment
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'invalid'
body: |
你好 ${{ github.event.issue.user.login }},检测到您没有提供快照,请补充必要的快照!
可在下方评论区补充
- name: Add label and comment for uploading failed
if: contains(github.event.issue.body, 'Uploading') == true
uses: actions-cool/issues-helper@v3
with:
actions: add-labels,create-comment
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'invalid'
body: |
你好 ${{ github.event.issue.user.login }},检测到您的文件上传失败,请在上传时等待文件前面的 Uploading 消失后再提交!
可在下方评论区补充
- name: Add label and comment for inaccessible snapshot links
if: contains(github.event.issue.body, 'i.gkd.li/snapshot/') == true
uses: actions-cool/issues-helper@v3
with:
actions: add-labels,create-comment
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'invalid'
body: |
你好 ${{ github.event.issue.user.login }},检测到您提供了他人无法访问的链接,请提供快照页面右上角生成的分享链接!
可在下方评论区补充