Mark and close stale issues #1
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: Mark and close stale issues | |
| on: | |
| schedule: | |
| # Run daily at midnight UTC | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - uses: actions/stale@v9 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Mark issues as stale after 14 days of no activity | |
| days-before-stale: 14 | |
| # Close stale issues after 7 more days with no activity | |
| days-before-close: 7 | |
| stale-issue-label: "stale" | |
| stale-issue-message: > | |
| This issue has had no activity for 14 days and has been marked as | |
| stale. It will be closed automatically in 7 days unless there is | |
| further activity. If this is still relevant, please leave a comment | |
| or remove the `stale` label. | |
| close-issue-message: > | |
| This issue was automatically closed after 7 days of inactivity | |
| following the stale notice. Feel free to re-open if the topic is | |
| still relevant. | |
| # Never mark issues with these labels as stale | |
| exempt-issue-labels: "help wanted,good first issue" | |
| # Only manage issues, not pull requests | |
| days-before-pr-stale: -1 | |
| days-before-pr-close: -1 |