From fb57eda70aba743520d72552deb9a399df8307d8 Mon Sep 17 00:00:00 2001 From: EdamAmex <121654029+EdamAme-x@users.noreply.github.com> Date: Fri, 1 Nov 2024 21:53:01 +0900 Subject: [PATCH 1/3] =?UTF-8?q?ci:=20automatically=20close=20issues=20mark?= =?UTF-8?q?ed=20as=20=E2=80=9Cnot=20bug=E2=80=9D=20over=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/no-response.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/no-response.yml diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml new file mode 100644 index 000000000..3bd0d4de3 --- /dev/null +++ b/.github/workflows/no-response.yml @@ -0,0 +1,25 @@ +name: Close stale issues with "not bug" label + +on: + schedule: + - cron: '0 0 * * *' + +permissions: + contents: write + issues: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - name: Close stale issues with "not bug" label + uses: actions/stale@v8 + with: + days-before-stale: 7 + days-before-close: 2 + stale-issue-message: '' # No Comment + close-issue-message: '' # No Comment + exempt-issue-labels: '' + only-labels: 'not bug' + operations-per-run: 30 + remove-stale-when-updated: true From 0f7b13721de6beb5cd444f87e9d1817ad269ce87 Mon Sep 17 00:00:00 2001 From: EdamAmex <121654029+EdamAme-x@users.noreply.github.com> Date: Sat, 2 Nov 2024 19:01:19 +0900 Subject: [PATCH 2/3] Update no-response.yml --- .github/workflows/no-response.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml index 3bd0d4de3..07ab2419d 100644 --- a/.github/workflows/no-response.yml +++ b/.github/workflows/no-response.yml @@ -19,7 +19,8 @@ jobs: days-before-close: 2 stale-issue-message: '' # No Comment close-issue-message: '' # No Comment - exempt-issue-labels: '' + exempt-issue-labels: '' + stale-issue-label: 'stale' only-labels: 'not bug' operations-per-run: 30 remove-stale-when-updated: true From 3bab9232c2112629786257fdb71ad4e7f89d329a Mon Sep 17 00:00:00 2001 From: EdamAmex <121654029+EdamAme-x@users.noreply.github.com> Date: Sat, 2 Nov 2024 19:02:16 +0900 Subject: [PATCH 3/3] add comment --- .github/workflows/no-response.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml index 07ab2419d..d0d1be7fa 100644 --- a/.github/workflows/no-response.yml +++ b/.github/workflows/no-response.yml @@ -17,8 +17,8 @@ jobs: with: days-before-stale: 7 days-before-close: 2 - stale-issue-message: '' # No Comment - close-issue-message: '' # No Comment + stale-issue-message: 'This issue has been marked as stale due to inactivity.' + close-issue-message: 'Closing this issue due to inactivity.' exempt-issue-labels: '' stale-issue-label: 'stale' only-labels: 'not bug'