From 788140a406f243c9821bb7db01530274da067190 Mon Sep 17 00:00:00 2001 From: Drew Yang Date: Thu, 13 Mar 2025 16:04:25 -0500 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E2=9C=A8=20auto=20close=20inactive?= =?UTF-8?q?=20issue/pr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/close_inactive_issues.yaml | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/close_inactive_issues.yaml diff --git a/.github/workflows/close_inactive_issues.yaml b/.github/workflows/close_inactive_issues.yaml new file mode 100644 index 000000000..9f0b2da14 --- /dev/null +++ b/.github/workflows/close_inactive_issues.yaml @@ -0,0 +1,22 @@ +name: Close inactive issues +on: + schedule: + - cron: "30 1 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v9 + with: + days-before-issue-stale: 45 # for initial period, suggest 15 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 45 days with no activity." + days-before-issue-close: 365 # for initial period, suggest 30 + close-issue-message: "This issue was closed because it has been inactive for 365 days since being marked as stale." + days-before-pr-stale: 45 # for initial period, suggest 15 + days-before-pr-close: 365 # for initial period, suggest 30 + repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 7f44a302804e936046da2ce50324ab8740e8f888 Mon Sep 17 00:00:00 2001 From: Drew Yang Date: Thu, 13 Mar 2025 16:06:50 -0500 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=F0=9F=92=A1=20update=20stale=20clos?= =?UTF-8?q?ing=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/close_inactive_issues.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/close_inactive_issues.yaml b/.github/workflows/close_inactive_issues.yaml index 9f0b2da14..4710e1df6 100644 --- a/.github/workflows/close_inactive_issues.yaml +++ b/.github/workflows/close_inactive_issues.yaml @@ -16,7 +16,7 @@ jobs: stale-issue-label: "stale" stale-issue-message: "This issue is stale because it has been open for 45 days with no activity." days-before-issue-close: 365 # for initial period, suggest 30 - close-issue-message: "This issue was closed because it has been inactive for 365 days since being marked as stale." + close-issue-message: "This issue was closed because it has been inactive for 365 days since being marked as stale, please reopen if it's still applicable." days-before-pr-stale: 45 # for initial period, suggest 15 days-before-pr-close: 365 # for initial period, suggest 30 repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file