diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml new file mode 100644 index 0000000..20f2179 --- /dev/null +++ b/.github/workflows/stale-bot.yml @@ -0,0 +1,22 @@ +name: 'Close stale PRs' +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: + +permissions: + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-pr-message: 'This PR is stale because it has been open 25 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + close-pr-message: 'This PR was closed because it has been inactive for 5 days after being marked stale.' + days-before-issue-stale: -1 + days-before-issue-close: -1 + days-before-pr-stale: 25 + days-before-pr-close: 5 + operations-per-run: 300