Close stale PRs #11
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 stale PRs' | |
| on: | |
| # Run daily at 01:30. | |
| schedule: | |
| - cron: '30 1 * * *' | |
| # Allows you to run this workflow manually from the Actions tab on GitHub. | |
| workflow_dispatch: | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-24.04 | |
| if: github.repository == 'SerenityOS/serenity' | |
| permissions: | |
| actions: write # required for cache management (see https://github.com/actions/stale/issues/1133) | |
| pull-requests: write | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| operations-per-run: 30 | |
| exempt-pr-labels: "β pr-is-blocked" | |
| # Leave issues alone. | |
| days-before-issue-stale: -1 | |
| days-before-issue-close: -1 | |
| # PRs become stale after 21 days of inactivity. | |
| days-before-pr-stale: 21 | |
| stale-pr-label: stale | |
| stale-pr-message: > | |
| This pull request has been automatically marked as stale because it has not had recent activity. It will be | |
| closed in 7 days if no further activity occurs. Thank you for your contributions! | |
| # PRs get closed after 30 days (21 + 7) of inactivity | |
| days-before-pr-close: 7 | |
| close-pr-message: > | |
| This pull request has been closed because it has not had recent activity. Feel free to re-open if you wish | |
| to still contribute these changes. Thank you for your contributions! |