-
-
Notifications
You must be signed in to change notification settings - Fork 40
67 lines (61 loc) · 2.44 KB
/
issue-labeled.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Issue Labeled
on:
issues:
types: [labeled]
permissions:
contents: read
issues: write
pull-requests: write
jobs:
cannot-replicate:
runs-on: ubuntu-latest
steps:
- name: Reply Issue
if: "${{ github.event.label.name == 'Resolution: Cannot Replicate'}}"
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for reporting this issue. But we're unable to replicate your issue, if you are able to create a reproducer or add details to provide more context, please reply to this issue.
**We will close this issue in 15 days if no further information is provided**.
invalid:
runs-on: ubuntu-latest
steps:
- name: Reply Issue
if: "${{ github.event.label.name == 'Resolution: Invalid'}}"
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
We are happy to see you're contributing to fastjs, but we are unable to work on this issue for now, because:
- It's not a bug.
- This feature is not in our roadmap.
- It's not a valid issue.
- It's a duplicate issue.
- This issue violates our [Code of Conduct](https://docs.fastjs.dev/other/code-of-conduct.html).
- Other reasons.
- name: Close Issue
if: "${{ github.event.label.name == 'Resolution: Invalid'}}"
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issues'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'Resolution: Invalid'
comment: 'This issue is closed because it is invalid.'
to-be-discuss:
runs-on: ubuntu-latest
steps:
- name: Reply Issue
if: "${{ github.event.label.name == 'Resolution: To Be Discuss'}}"
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for reporting this issue! We need to discuss this issue with the team, we will update the status of this issue as soon as possible.