Automate staleness #54887
This file contains 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: Automate staleness | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '*/10 * * * *' # run every 10 minutes as it also removes labels. | |
permissions: | |
contents: read | |
jobs: | |
stale: | |
permissions: | |
issues: write # for actions/stale to close stale issues | |
pull-requests: write # for actions/stale to close stale PRs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 | |
with: | |
egress-policy: audit | |
- uses: actions/[email protected] | |
id: stale | |
with: | |
stale-issue-message: > | |
This issue has been automatically marked as stale because it has not had | |
recent activity. It will be closed if no further activity occurs. Thank you | |
for your contributions. | |
days-before-issue-stale: 60 | |
days-before-issue-close: 7 | |
exempt-issue-labels: plugin,after-vacations,will-fix | |
stale-issue-label: stale | |
stale-pr-message: > | |
This PR has been automatically marked as stale because it has not had | |
recent activity from the author. It will be closed if no further activity occurs. | |
If the PR was closed and you want it re-opened, let us know | |
and we'll re-open the PR so that you can continue the contribution! | |
days-before-pr-stale: 7 | |
days-before-pr-close: 5 | |
exempt-pr-labels: after-vacations,will-fix | |
stale-pr-label: stale | |
operations-per-run: 100 |