diff --git a/.github/workflows/close-stale-issues.yaml b/.github/workflows/close-stale-issues.yaml new file mode 100644 index 00000000000..7d088d5089d --- /dev/null +++ b/.github/workflows/close-stale-issues.yaml @@ -0,0 +1,22 @@ +name: Close stale issues and PRs + +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: +jobs: + stale: + name: Close stale issues and PRs + runs-on: ubuntu-latest + steps: + - name: Close stale issues and PRs + uses: actions/stale@v8 + with: + stale-pr-message: 'Marking this pull request as stale after 30 days of inactivity, please comment or this will be closed.' + close-pr-message: 'This pull request was closed because it has been stale for 7 days with no activity.' + days-before-stale: -1 + days-before-close: -1 + days-before-pr-stale: 30 + days-before-pr-close: 7 + stale-pr-label: stale + repo-token: ${{ secrets.GITHUB_TOKEN }}