diff --git a/.github/workflows/close-stale-issues.yaml b/.github/workflows/close-stale-issues.yaml new file mode 100644 index 000000000..eece46a3f --- /dev/null +++ b/.github/workflows/close-stale-issues.yaml @@ -0,0 +1,24 @@ +name: 'Close stale issues and PRs' + +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + + permissions: + contents: write + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue has been marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.' + stale-pr-message: 'This pull request has been marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.' + days-before-issue-stale: 90 + days-before-pr-stale: 60 + days-before-close: 7 + stale-issue-label: 'stale'