From 273378d4b2f636d45dfbe17be58ed7b0de60a67a Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 25 Mar 2025 16:24:00 +0800 Subject: [PATCH 1/3] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E7=9A=84=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-check-inactive.yml | 26 ---------------------- .github/workflows/issue-close-required.yml | 26 ---------------------- 2 files changed, 52 deletions(-) delete mode 100644 .github/workflows/issue-check-inactive.yml delete mode 100644 .github/workflows/issue-close-required.yml diff --git a/.github/workflows/issue-check-inactive.yml b/.github/workflows/issue-check-inactive.yml deleted file mode 100644 index ac743f0102e..00000000000 --- a/.github/workflows/issue-check-inactive.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Issue Check Inactive - -on: - schedule: - - cron: "0 0 */15 * *" - -permissions: - contents: read - -jobs: - issue-check-inactive: - permissions: - issues: write - runs-on: ubuntu-latest - steps: - - name: check-inactive - uses: actions-cool/issues-helper@v3 - with: - actions: 'check-inactive' - token: ${{ secrets.GITHUB_TOKEN }} - inactive-label: 'inactive' - inactive-day: 3 - body: | - 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. - - 由于该 issue 被标记为不合规工程,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 diff --git a/.github/workflows/issue-close-required.yml b/.github/workflows/issue-close-required.yml deleted file mode 100644 index e85abca0f96..00000000000 --- a/.github/workflows/issue-close-required.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Issue Close Require - -on: - schedule: - - cron: "0 10 * * *" - -permissions: - contents: read - -jobs: - issue-close-require: - permissions: - issues: write - runs-on: ubuntu-latest - steps: - - name: needs repro project - uses: actions-cool/issues-helper@v3 - with: - actions: 'close-issues' - token: ${{ secrets.GITHUB_TOKEN }} - labels: 'need-repro-project' - inactive-day: 2 - body: | - 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,若有任何问题,可评论回复。 From 7a935eaa98995c84fcd3a2f10ea8b42606bd006e Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 25 Mar 2025 16:24:09 +0800 Subject: [PATCH 2/3] chore: add new action --- .github/workflows/close-stale-issues.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/close-stale-issues.yml diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml new file mode 100644 index 00000000000..2e655ceb94a --- /dev/null +++ b/.github/workflows/close-stale-issues.yml @@ -0,0 +1,19 @@ +name: Close inactive issues +on: + schedule: + - cron: "0 10 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/stale@v9 + with: + days-before-issue-stale: 2 + days-before-issue-close: 2 + 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. 由于该 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. 由于该 issue 被标记为需要复现工程,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复" + repo-token: ${{ secrets.GITHUB_TOKEN }} From b5a9f670f3f9bc60f264da795ca4e13a5c9da892 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 25 Mar 2025 16:26:15 +0800 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=91=A8=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/close-stale-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml index 2e655ceb94a..079a612665b 100644 --- a/.github/workflows/close-stale-issues.yml +++ b/.github/workflows/close-stale-issues.yml @@ -1,7 +1,7 @@ name: Close inactive issues on: schedule: - - cron: "0 10 * * *" + - cron: "30 2 * * *" jobs: close-issues: