-
Notifications
You must be signed in to change notification settings - Fork 1
99 lines (85 loc) · 4.04 KB
/
Copy pathissue_comment.yml
File metadata and controls
99 lines (85 loc) · 4.04 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Issue Comment
on:
issues:
types: [labeled]
permissions:
contents: read
jobs:
issue-labeled:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: Comment Feature
if: github.event.label.name == 'feature'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}, thanks for your suggestions.
你好 @${{ github.event.issue.user.login }},感谢提交建议!
- name: Comment Bug
if: github.event.label.name == 'bug'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}, thanks for your feedback.
你好 @${{ github.event.issue.user.login }},感谢提交反馈!
- name: Comment Help Wanted
if: github.event.label.name == 'help wanted'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Sorry @${{ github.event.issue.user.login }}, we do not have a good solution now.
Welcome to [send us a Pull Request](https://help.github.com/en/articles/creating-a-pull-request) for it.
Make sure CI passed, we appreciate your effort and look forward to your contribution!
抱歉 @${{ github.event.issue.user.login }},
目前,并没有很好地解决方法!欢迎直接在此仓库 [创建一个 Pull Request](https://docs.github.com/zh/pull-requests) 来解决这个问题。
确保 CI 通过,提前感谢和期待您的贡献。
- name: Comment Reproduce
if: github.event.label.name == 'reproduce'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }},
We can not reproduce you feedback.
Please provide a reproduction in order to address the issue.
你好 @${{ github.event.issue.user.login }},
我们未能复现你的反馈。请提供一个复现步骤以便于我们排查问题。
- name: Comment Usage
if: github.event.label.name == 'usage' || github.event.label.name == 'question'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }},
Thanks for leave an issue here.
你好 @${{ github.event.issue.user.login }},感谢您浏览该项目并提出问题。
- name: Comment Invalid
if: github.event.label.name == 'invalid'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment,close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }},
Your issue has been closed because it does not conform to our issue requirements.
Please use the issue template to create an issue, thank you!
你好 @${{ github.event.issue.user.login }},
为了能够进行高效沟通,我们对 issue 有一定的格式要求,
你的 issue 因为不符合要求而被自动关闭。请务必根据 issue 模板来创建 issue,以方便定位问题,谢谢!