From 77c7645dfb59e33277f4503b44f961667e31e156 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 18 Mar 2025 10:56:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=85=B3=E9=97=AD=20Issue=20Action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-check-inactive.yml | 21 +++++++++++++++++ .github/workflows/issue-close-required.yml | 26 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/workflows/issue-check-inactive.yml create mode 100644 .github/workflows/issue-close-required.yml diff --git a/.github/workflows/issue-check-inactive.yml b/.github/workflows/issue-check-inactive.yml new file mode 100644 index 00000000..7267f432 --- /dev/null +++ b/.github/workflows/issue-check-inactive.yml @@ -0,0 +1,21 @@ +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' + inactive-label: 'inactive' + inactive-day: 7 diff --git a/.github/workflows/issue-close-required.yml b/.github/workflows/issue-close-required.yml new file mode 100644 index 00000000..f14f5e89 --- /dev/null +++ b/.github/workflows/issue-close-required.yml @@ -0,0 +1,26 @@ +name: Issue Close Require + +on: + schedule: + - cron: "0 0 * * *" + +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: 3 + body: | + Since the issue was labeled with `need-repro-project`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. + + 由于该 issue 被标记为需要复现工程,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 From ffc7018c5894fe0cb067c8020d570b28bd440943 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 18 Mar 2025 10:58:10 +0800 Subject: [PATCH 2/3] chore: update action --- .github/workflows/issue-check-inactive.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/issue-check-inactive.yml b/.github/workflows/issue-check-inactive.yml index 7267f432..1bea52e8 100644 --- a/.github/workflows/issue-check-inactive.yml +++ b/.github/workflows/issue-check-inactive.yml @@ -17,5 +17,6 @@ jobs: uses: actions-cool/issues-helper@v3 with: actions: 'check-inactive' + token: ${{ secrets.GITHUB_TOKEN }} inactive-label: 'inactive' inactive-day: 7 From 181c22901488da7f8cb80f8ce513fb0072dc8306 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 18 Mar 2025 11:10:35 +0800 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-check-inactive.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue-check-inactive.yml b/.github/workflows/issue-check-inactive.yml index 1bea52e8..ac743f01 100644 --- a/.github/workflows/issue-check-inactive.yml +++ b/.github/workflows/issue-check-inactive.yml @@ -19,4 +19,8 @@ jobs: actions: 'check-inactive' token: ${{ secrets.GITHUB_TOKEN }} inactive-label: 'inactive' - inactive-day: 7 + 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,若有任何问题,可评论回复。