From 5d87dbc1296f0461cf703aa2b15d1d124a6630ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=E5=89=91=E4=BE=A0=E5=AE=A2?= Date: Tue, 10 Oct 2023 05:10:55 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E2=80=9C=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E4=B8=8D=E6=B4=BB=E8=B7=83=E7=9A=84=E8=AE=AE=E9=A2=98?= =?UTF-8?q?=E2=80=9D=E5=B7=A5=E4=BD=9C=E6=B5=81=20(#19)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/close_inactive_issues.yml | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/close_inactive_issues.yml diff --git a/.github/workflows/close_inactive_issues.yml b/.github/workflows/close_inactive_issues.yml new file mode 100644 index 00000000..d5cd3cf1 --- /dev/null +++ b/.github/workflows/close_inactive_issues.yml @@ -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@v5 + with: + days-before-issue-stale: 30 + days-before-issue-close: 14 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + days-before-pr-stale: -1 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }}