|
| 1 | +name: Issue Helper |
| 2 | + |
| 3 | +on: |
| 4 | + issues: |
| 5 | + types: [opened, labeled] |
| 6 | + |
| 7 | +# 权限配置 |
| 8 | +permissions: |
| 9 | + issues: write |
| 10 | + |
| 11 | +jobs: |
| 12 | + issue-handler: |
| 13 | + runs-on: ubuntu-latest |
| 14 | + steps: |
| 15 | + # 自动欢迎 |
| 16 | + - name: Welcome Comment |
| 17 | + if: github.event_name == 'issues' && github.event.action == 'opened' |
| 18 | + uses: actions-cool/issues-helper@v3 |
| 19 | + with: |
| 20 | + actions: "create-comment" |
| 21 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 22 | + body: | |
| 23 | + 👋 您好 @${{ github.actor }},感谢提交 Issue! |
| 24 | + 🚀 我们已经收到您的反馈,会尽快确认你的问题 |
| 25 | +
|
| 26 | + 在等待回复期间,您可以: |
| 27 | + - 📖 查看 [项目文档](https://github.com/imsyy/SPlayer/blob/dev/README.md) |
| 28 | + - 💬 加入 [交流群](https://qm.qq.com/cgi-bin/qm/qr?k=2-cVSf1bE0AvAehCib00qFEFdUvPaJ_k&jump_from=webapi&authKey=1NEhib9+GsmsXVo2rCc0IbRaVHeeRXJJ0gbsyKDcIwDdAzYySOubkFCvkV32+7Cw) 进行实时讨论 |
| 29 | + - 🔍 搜索 [现有 Issues](https://github.com/imsyy/SPlayer/issues) 查看是否有类似问题 |
| 30 | + # 自动关闭 |
| 31 | + - name: Auto Close |
| 32 | + if: github.event.action == 'labeled' && contains(fromJSON('["不会修复", "无效", "重复"]'), github.event.label.name) |
| 33 | + uses: actions-cool/issues-helper@v3 |
| 34 | + with: |
| 35 | + actions: "create-comment, close-issue" |
| 36 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 37 | + body: | |
| 38 | + 抱歉,由于该 Issue 被标记为 **${{ github.event.label.name }}**,系统将自动将其关闭 |
| 39 | + 如果您认为该 Issue 仍然有效,请重新开启或者创建新的 Issue,我们会尽快确认并修复 |
| 40 | + # 有问题回复 |
| 41 | + - name: Auto Reply |
| 42 | + if: github.event.action == 'labeled' && github.event.label.name == '有问题' |
| 43 | + uses: actions-cool/issues-helper@v3 |
| 44 | + with: |
| 45 | + actions: "create-comment" |
| 46 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 47 | + body: | |
| 48 | + 🤝 您好 @${{ github.actor }},感谢您的反馈!我们注意到该问题被添加了 **${{ github.event.label.name }}** |
| 49 | + 由于缺少复现步骤,我们无法重现问题,因此无法修复 |
| 50 | + 请确保您已经详细描述了问题的复现步骤,维护团队会尽快查看 |
| 51 | + # 已确认 BUG |
| 52 | + - name: Auto Confirm BUG |
| 53 | + if: github.event.action == 'labeled' && github.event.label.name == 'BUG' |
| 54 | + uses: actions-cool/issues-helper@v3 |
| 55 | + with: |
| 56 | + actions: "remove-labels, create-comment" |
| 57 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 58 | + labels: "有问题" |
| 59 | + body: | |
| 60 | + 🤝 您好 @${{ github.actor }},感谢您的反馈!我们已经确认该问题,并将在下一个版本中修复 |
| 61 | + # 已修复 |
| 62 | + - name: Auto Fixed |
| 63 | + if: github.event.action == 'labeled' && github.event.label.name == '已修复' |
| 64 | + uses: actions-cool/issues-helper@v3 |
| 65 | + with: |
| 66 | + actions: "create-comment, remove-labels, close-issue" |
| 67 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 68 | + labels: "BUG" |
| 69 | + close-reason: "completed" |
| 70 | + body: | |
| 71 | + 🎉 您好 @${{ github.actor }},该问题已修复,感谢您的反馈! |
| 72 | +
|
| 73 | + 若您觉得仍存在问题,请重新开启或者创建新的 Issue,我们会尽快确认并修复 |
0 commit comments