-
Notifications
You must be signed in to change notification settings - Fork 1.2k
84 lines (80 loc) · 3.8 KB
/
issue-helper.yml
File metadata and controls
84 lines (80 loc) · 3.8 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Issue Helper
on:
issues:
types: [opened, labeled]
# 权限配置
permissions:
issues: write
jobs:
issue-handler:
runs-on: ubuntu-latest
steps:
# 自动欢迎
- name: Welcome Comment
if: github.event_name == 'issues' && github.event.action == 'opened'
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment"
token: ${{ secrets.GITHUB_TOKEN }}
body: |
👋 您好 @${{ github.event.issue.user.login }},感谢提交 Issue!
🚀 我们已经收到您的反馈,会尽快确认你的问题
在等待回复期间,您可以:
- 📖 查看 [项目文档](https://github.com/imsyy/SPlayer/blob/dev/README.md)
- 💬 加入 [交流群](https://qm.qq.com/cgi-bin/qm/qr?k=2-cVSf1bE0AvAehCib00qFEFdUvPaJ_k&jump_from=webapi&authKey=1NEhib9+GsmsXVo2rCc0IbRaVHeeRXJJ0gbsyKDcIwDdAzYySOubkFCvkV32+7Cw) 进行实时讨论
- 🔍 搜索 [现有 Issues](https://github.com/imsyy/SPlayer/issues) 查看是否有类似问题
# 自动关闭
- name: Auto Close
if: github.event.action == 'labeled' && contains(fromJSON('["不会修复", "无效", "重复"]'), github.event.label.name)
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment, close-issue"
token: ${{ secrets.GITHUB_TOKEN }}
body: |
抱歉,由于被标记为 **${{ github.event.label.name }}**,该 Issue 将自动关闭
如果您认为该 Issue 仍然有效,请创建新的 Issue,我们会尽快确认并修复
# 有问题回复
- name: Auto Reply
if: github.event.action == 'labeled' && github.event.label.name == '有问题'
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment"
token: ${{ secrets.GITHUB_TOKEN }}
body: |
🤝 您好 @${{ github.event.issue.user.login }},感谢您的反馈!
由于缺少复现步骤,我们无法重现问题,因此无法修复
请确保您已经详细描述了问题的复现步骤,维护团队会尽快查看
# 已确认 BUG
- name: Auto Confirm BUG
if: github.event.action == 'labeled' && github.event.label.name == 'BUG'
uses: actions-cool/issues-helper@v3
with:
actions: "remove-labels, create-comment"
token: ${{ secrets.GITHUB_TOKEN }}
labels: "有问题, 过期"
body: |
🤝 您好 @${{ github.event.issue.user.login }},感谢您的反馈!我们已经确认该问题,并将在下一个版本中修复
# 无法复现
- name: Auto Unreproducible
if: github.event.action == 'labeled' && github.event.label.name == '无法复现'
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment"
token: ${{ secrets.GITHUB_TOKEN }}
body: |
🤝 您好 @${{ github.event.issue.user.login }},感谢您的反馈!
由于无法复现问题,我们无法修复
请确保您已经详细描述了问题的复现步骤,维护团队会尽快查看
# 已修复
- name: Auto Fixed
if: github.event.action == 'labeled' && github.event.label.name == '已修复'
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment, remove-labels, close-issue"
token: ${{ secrets.GITHUB_TOKEN }}
labels: "BUG"
close-reason: "completed"
body: |
🎉 您好 @${{ github.event.issue.user.login }},感谢您的反馈!
该问题已在当前开发版或下一个正式版中修复完成。
若您觉得仍存在问题,请创建新的 Issue,我们会尽快确认并修复