From 928c51b1d0430ae5e95ba229e17bc98684407d87 Mon Sep 17 00:00:00 2001 From: Xwite <82232510+Xwite@users.noreply.github.com> Date: Fri, 4 Mar 2022 16:48:05 +0800 Subject: [PATCH] ci:create stale.yml If an issue is not updated for 30 days, the issue will be automatically closed after 5 days. see https://github.com/actions/stale --- .github/workflows/stale.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 000000000..2863c72dd --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,25 @@ +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: closeStaleIssue + +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: '由于长期没有状态更新,该问题自动关闭。如有需要可重新打开。' + days-before-stale: 30 + days-before-close: 5