From ed4c2c9bca6cb44885bdaad7d2d76659dddac73c Mon Sep 17 00:00:00 2001 From: Zhang Rupeng Date: Mon, 23 Dec 2024 15:44:23 +0800 Subject: [PATCH] Create stale-bot.yaml Add GitHub action to close stale issues. --- .github/workflows/stale-bot.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/stale-bot.yaml diff --git a/.github/workflows/stale-bot.yaml b/.github/workflows/stale-bot.yaml new file mode 100644 index 0000000..f9e2f1f --- /dev/null +++ b/.github/workflows/stale-bot.yaml @@ -0,0 +1,14 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '0 8 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label / comment, or this will be closed in 5 days.' + days-before-stale: 30 + days-before-close: 5