Close stale issues and PRs #37
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: 'Close stale issues and PRs' | |
on: | |
schedule: | |
- cron: '0 */6 * * *' | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v8 | |
with: | |
# General rules applied to both, issues and pull requests (PRs) | |
start-date: "2022-07-30T00:00:00Z" | |
days-before-close: 14 | |
days-before-stale: 90 | |
exempt-all-assignees: true | |
exempt-all-milestones: true | |
# Rules applied to Issues | |
exempt-issue-labels: "Feature, bug, Priority: Critical, Priority: High, clarification, community-upvoted, security, keep" | |
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. | |
close-issue-message: > | |
This issue has been automatically closed due to lack of activity. If you disagree, please comment on reason | |
why and reopen the issue | |
# Rules applied to PRs | |
exempt-pr-labels: "community-upvoted, clarification, security, keep" | |
stale-pr-message: > | |
This pull request has been automatically marked as stale because it has not had | |
recent activity. It will be closed if no further activity occurs. | |
close-pr-message: > | |
This pull request has been automatically closed due to lack of activity. If you disagree, please comment on | |
reason why and reopen pull request |