Skip to content

Commit d3800b5

Browse files
committed
chore: update github workflow
1 parent b7eed32 commit d3800b5

File tree

4 files changed

+54
-30
lines changed

4 files changed

+54
-30
lines changed

.github/workflows/issue-close-require.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
close-issues:
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: need reproduce
12-
uses: actions-cool/issues-helper@v1.7
15+
uses: actions-cool/issues-helper@v3
1316
with:
1417
actions: 'close-issues'
1518
labels: '🤔 Need Reproduce'
Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
name: Issue Reply
1+
name: Issue Labeled
22

33
on:
44
issues:
55
types: [labeled]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
8-
issue-reply:
11+
issue-labeled:
12+
permissions:
13+
issues: write # for actions-cool/issues-helper to update issues
14+
pull-requests: write # for actions-cool/issues-helper to update PRs
915
runs-on: ubuntu-latest
1016
steps:
11-
- name: Need Reproduce
17+
- name: Need Reproduce
1218
if: github.event.label.name == '🤔 Need Reproduce'
13-
uses: actions-cool/issues-helper@v1.2
19+
uses: actions-cool/issues-helper@v3
1420
with:
1521
actions: 'create-comment'
22+
token: ${{ secrets.GITHUB_TOKEN }}
1623
issue-number: ${{ github.event.issue.number }}
1724
body: |
1825
Hello @${{ github.event.issue.user.login }}. Please provide a online reproduction by forking this [link for vue2](https://codesandbox.io/s/2wpk21kzvr)、 [link for vue3](https://codesandbox.io/s/agitated-franklin-1w72v) or a minimal GitHub repository. Make sure to choose the correct version.
@@ -21,9 +28,10 @@ jobs:
2128
2229
- name: help wanted
2330
if: github.event.label.name == 'help wanted'
24-
uses: actions-cool/issues-helper@v1.2
31+
uses: actions-cool/issues-helper@v3
2532
with:
2633
actions: 'create-comment'
34+
token: ${{ secrets.GITHUB_TOKEN }}
2735
issue-number: ${{ github.event.issue.number }}
2836
body: |
2937
Hello @${{ github.event.issue.user.login }}. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to proper branch, fill the Pull Request Template here, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!
@@ -32,12 +40,37 @@ jobs:
3240
3341
- name: Usage
3442
if: github.event.label.name == 'Usage'
35-
uses: actions-cool/issues-helper@v1.2
43+
uses: actions-cool/issues-helper@v3
3644
with:
3745
actions: 'create-comment, close-issue'
46+
token: ${{ secrets.GITHUB_TOKEN }}
3847
issue-number: ${{ github.event.issue.number }}
3948
body: |
4049
Hello @${{ github.event.issue.user.login }}, we use GitHub issues to trace bugs or discuss plans of Ant Design Vue. So, please don't ask usage questions here. You can try to open a new discussion in [antdv discussions](https://github.com/vueComponent/ant-design-vue/discussions), select `Q&A` to ask questions, also can ask questions on [Stack Overflow](http://stackoverflow.com/questions/) or [Segment Fault](https://segmentfault.com).
4150
4251
你好 @${{ github.event.issue.user.login }},Ant Design Vue Issue 板块是用于 bug 反馈与需求讨论的地方。请勿询问如何使用的问题,你可以试着在 [antdv discussions](https://github.com/vueComponent/ant-design-vue/discussions) 新开一个 discussion,选择 `Q&A` 类别进行提问,也可以在 [Stack Overflow](http://stackoverflow.com/questions/) 或者 [Segment Fault](https://segmentfault.com/) 中提问。
43-
52+
53+
- name: 1.x
54+
if: github.event.label.name == '1.x'
55+
uses: actions-cool/issues-helper@v3
56+
with:
57+
actions: 'create-comment,close-issue'
58+
token: ${{ secrets.GITHUB_TOKEN }}
59+
issue-number: ${{ github.event.issue.number }}
60+
body: |
61+
Hi @${{ github.event.issue.user.login }}. Current version (1.x) is off the maintenance period. We may not accept pull request or fix bug with it anymore. This topic will be auto closed.
62+
63+
你好 @${{ github.event.issue.user.login }},当前版本(1.x)已经过了维护期。我们不会再接受对其的相关 PR 与 issue。当前 topic 会被自动关闭。
64+
65+
- name: 2.x
66+
if: github.event.label.name == '2.x'
67+
uses: actions-cool/issues-helper@v3
68+
with:
69+
actions: 'create-comment,close-issue'
70+
token: ${{ secrets.GITHUB_TOKEN }}
71+
issue-number: ${{ github.event.issue.number }}
72+
body: |
73+
Hi @${{ github.event.issue.user.login }}. Current version (2.x) is off the maintenance period. We may not accept pull request or fix bug with it anymore. This topic will be auto closed.
74+
75+
你好 @${{ github.event.issue.user.login }},当前版本(2.x)已经过了维护期。我们不会再接受对其的相关 PR 与 issue。当前 topic 会被自动关闭。
76+

.github/workflows/issue-open-check.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@ on:
44
issues:
55
types: [opened]
66

7+
8+
permissions:
9+
contents: read
10+
711
jobs:
8-
check-issue:
12+
issue-open-check:
13+
permissions:
14+
contents: read # for visiky/dingtalk-release-notify to get latest release
15+
issues: write # for actions-cool/issues-helper to update issues
16+
pull-requests: write # for actions-cool/issues-helper to update PRs
917
runs-on: ubuntu-latest
1018
steps:
1119
- uses: actions-cool/[email protected]
@@ -15,7 +23,7 @@ jobs:
1523

1624
- name: check invalid
1725
if: (contains(github.event.issue.body, 'issue-helper') == false) && (steps.checkUser.outputs.result == 'false')
18-
uses: actions-cool/issues-helper@v1.2
26+
uses: actions-cool/issues-helper@v3
1927
with:
2028
actions: 'create-comment,add-labels,close-issue'
2129
issue-number: ${{ github.event.issue.number }}

.github/workflows/pr-labeled.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)