Close inactive issues #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Close inactive issues | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Runs every Monday at 06:00 PST (14:00 UTC) | |
| - cron: '0 14 * * 1' | |
| jobs: | |
| close-issues: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| days-before-issue-stale: 365 | |
| days-before-issue-close: 31 | |
| stale-issue-label: "stale" | |
| stale-issue-message: "This issue has been inactive for a year. It will be closed in 31 days if no further activity occurs. If you believe this issue is still relevant, please comment to keep it open." | |
| close-issue-message: "Closing due to prolonged inactivity." | |
| remove-stale-when-updated: true | |
| dry-run: true # This prevents any real changes | |
| operations-per-run: 400 | |
| repo-token: ${{ secrets.PAT_TOKEN }} |