Inactivity #335
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: Inactivity | |
| on: | |
| schedule: | |
| # ┌───────────── minute (0 - 59) | |
| # │ ┌───────────── hour (0 - 23) | |
| # │ │ ┌───────────── day of the month (1 - 31) | |
| # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
| # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
| # │ │ │ │ │ | |
| # │ │ │ │ │ | |
| # │ │ │ │ │ | |
| # * * * * * | |
| - cron: "30 3 * * *" | |
| jobs: | |
| close-issues: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Close inactive issues, PRs, and stale issues | |
| uses: actions/stale@v9 | |
| with: | |
| # issues | |
| days-before-issue-stale: 30 | |
| days-before-issue-close: 14 | |
| stale-issue-label: "stale" | |
| stale-issue-message: "This issue is stale because it has been open for 30 days with no activity. Remove the stale label or comment to keep it open." | |
| close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale. Feel free to reopen if still relevant." | |
| # pull requests | |
| days-before-pr-stale: 45 | |
| days-before-pr-close: 21 | |
| stale-pr-label: "stale" | |
| stale-pr-message: "This PR is stale because it has been open for 45 days with no activity. Please update or close if no longer needed." | |
| close-pr-message: "This PR was closed because it has been inactive for 21 days since being marked as stale." | |
| # exemptions | |
| exempt-issue-labels: "bug,enhancement,help wanted,pinned" | |
| exempt-pr-labels: "work in progress,blocked" |