Skip to content

Commit 38309fe

Browse files
committed
refactor: 增加 any-of-labels 设置
1 parent 4182636 commit 38309fe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/close-stale-issues.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Close inactive issues
22
on:
33
schedule:
4-
- cron: "30 2 * * *"
4+
- cron: "0 1 * * *"
55

66
jobs:
77
close-issues:
@@ -13,7 +13,8 @@ jobs:
1313
with:
1414
days-before-issue-stale: 2
1515
days-before-issue-close: 2
16+
any-of-labels: "invalid, need-repro-project"
1617
stale-issue-label: "stale"
17-
stale-issue-message: "Since the issue was labeled with `invalid`, but no response in 2 days. This issue will be closed. If you have any questions, you can comment and reply. 由于该 issue 被标记为不合规工程,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复"
18-
close-issue-message: "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. 由于该 issue 被标记为需要复现工程,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复"
18+
stale-issue-message: "Since the issue was labeled with `invalid`, but no response in 2 days. This issue will be closed. If you have any questions, you can comment and reply. \r 由于该 issue 被标记为不合规工程,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复"
19+
close-issue-message: "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. \r 由于该 issue 被标记为需要复现工程,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复"
1920
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)