Cron - mark stale for inactive issues #1353
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: Cron - mark stale for inactive issues | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| on: | |
| # "Scheduled workflows run on the latest commit on the default or base branch." | |
| # — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule | |
| schedule: | |
| # Runs "At 00:00." every day (see https://crontab.guru) | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v7 | |
| with: | |
| days-before-close: -1 | |
| days-before-issue-stale: 60 | |
| days-before-issue-close: -1 | |
| days-before-pr-stale: 7 | |
| days-before-pr-close: 14 | |
| stale-pr-message: "This PR has been marked as stale due to inactivity. If you're still working on it or need any help, please let us know or update the PR to keep it active." | |
| close-pr-message: "This PR has been closed due to inactivity. Please feel free to reopen it if you'd like to continue the work." | |
| operations-per-run: 100 |