Mark stale issues and pull requests #1917
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: Mark stale issues and pull requests | |
permissions: | |
contents: write # only for delete-branch option | |
issues: write | |
pull-requests: write | |
on: | |
schedule: | |
- cron: "0 0/6 * * *" | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
exempt-issue-assignees: 'alexander0042' | |
exempt-pr-assignees: 'alexander0042' | |
exempt-issue-labels: 'keep,Needs Review' | |
exempt-pr-labels: 'keep' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: 'There has been no activity on this issue in the last ninety days and will automatically close in seven days. Leave a comment on this issue to prevent it from closing automatically.' | |
stale-pr-message: 'There has not been any activity on this pull request in the last ninety days and will automatically close in seven days. Leave a comment on this pull request to prevent it from closing automatically.' | |
close-issue-message: 'This issue has been automatically closed since there has been no further activity after seven days and will be automatically locked in sixty days. Feel free to re-open this issue or you can create a follow-up issue' | |
close-pr-message: 'This pull request has been automatically closed since there has been no further activity after seven days. Feel free to re-open the pull request or you can create a new follow-up pull request.' | |
stale-issue-label: 'stale' | |
stale-pr-label: 'stale' | |
days-before-stale: 90 | |
days-before-close: 7 | |
enable-statistics: 'true' | |
lock: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dessant/[email protected] | |
with: | |
issue-inactive-days: '60' | |
pr-inactive-days: '60' | |
issue-lock-reason: '' | |
github-token: ${{ secrets.GITHUB_TOKEN }} |