Skip to content

Commit b7ec338

Browse files
authored
chore(Action): add label check and auto close action (#5688)
1 parent 593a411 commit b7ec338

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Issue Check Inactive
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 */15 * *"
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
issue-check-inactive:
12+
permissions:
13+
issues: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: check-inactive
17+
uses: actions-cool/issues-helper@v3
18+
with:
19+
actions: 'check-inactive'
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
inactive-label: 'inactive'
22+
inactive-day: 3
23+
body: |
24+
Since the issue was labeled with `invalid`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
25+
26+
由于该 issue 被标记为不合规工程,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Issue Close Require
2+
3+
on:
4+
schedule:
5+
- cron: "0 10 * * *"
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
issue-close-require:
12+
permissions:
13+
issues: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: needs repro project
17+
uses: actions-cool/issues-helper@v3
18+
with:
19+
actions: 'close-issues'
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
labels: 'need-repro-project'
22+
inactive-day: 2
23+
body: |
24+
Since the issue was labeled with `need-repro-project`, but no response in 2 days. This issue will be closed. If you have any questions, you can comment and reply.
25+
26+
由于该 issue 被标记为需要复现工程,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

0 commit comments

Comments
 (0)