From 0c9e085aea289d42218afedb25db11de8f1f4d98 Mon Sep 17 00:00:00 2001 From: xiaozzzi <42293085+xiaozzzi@users.noreply.github.com> Date: Sat, 6 Jan 2024 23:34:33 +0800 Subject: [PATCH] ci: close inactive issues --- .github/workflows/stale.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..bca9497 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,27 @@ +name: "Close inactive issues" +on: + schedule: + - cron: "30 1 * * *" + +permissions: + issues: write + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-issue-stale: 30 + days-before-issue-close: 7 + stale-issue-label: "stale" + stale-issue-message: "This issue has been open 30 days with no activity. This will be closed in 7 days." + close-issue-message: "This issue has been automatically marked as stale because it hasn't had any recent activity." + days-before-pr-stale: -1 + days-before-pr-close: -1 + exempt-issue-labels: bug,enhancement