From 860fd39b5b3ddc5093ac6653cf258332c3f38895 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 29 Mar 2025 10:24:27 +0800 Subject: [PATCH] chore(Action): update github action clean stale issue --- .github/workflows/close-stale-issues.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml index 1bd1c0d2c56..e54960f3845 100644 --- a/.github/workflows/close-stale-issues.yml +++ b/.github/workflows/close-stale-issues.yml @@ -12,9 +12,20 @@ jobs: - uses: actions/stale@v9 with: days-before-issue-stale: 2 - days-before-issue-close: 2 - any-of-labels: "invalid,need-repro-project" + any-of-labels: "invalid" + stale-issue-label: "stale" + stale-issue-message: "Since the issue was labeled with `invalid`, but no response in 2 days. This issue will be closed after 2 days. If you have any questions, you can comment and reply. \r\r 由于该 issue 被标记为不合规工程,却 2 天未收到回应,该 Issue 将与 2 天后自动关闭。" + repo-token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/stale@v9 + with: + days-before-issue-stale: 2 + any-of-labels: "need-repro-project" stale-issue-label: "stale" - 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,若有任何问题,可评论回复" - 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,若有任何问题,可评论回复" + stale-issue-message: "Since the issue was labeled with `need-repro-project`, but no response in 2 days. This issue will be closed after 2 days. If you have any questions, you can comment and reply. \r\r 由于该 issue 被标记为需要复现工程,却 2 天未收到回应,该 Issue 将与 2 天后自动关闭。" + repo-token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/stale@v9 + with: + days-before-issue-close: 2 + any-of-labels: "stale" + close-issue-message: "Since the issue was labeled with `stale`, but no response in 2 days. This issue will be closed. If you have any questions, you can comment and reply. \r\r 由于该 issue 被标记为过期工程,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复。" repo-token: ${{ secrets.GITHUB_TOKEN }}