|
| 1 | +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. |
| 2 | +# |
| 3 | +# You can adjust the behavior by modifying this file. |
| 4 | +# For more information, see: |
| 5 | +# https://github.com/actions/stale |
| 6 | +name:Mark stale issues and pull requests |
| 7 | + |
| 8 | +on: |
| 9 | +schedule: |
| 10 | + -cron:'30 21 * * *' |
| 11 | + |
| 12 | +jobs: |
| 13 | +stale: |
| 14 | + |
| 15 | +runs-on:ubuntu-latest |
| 16 | +permissions: |
| 17 | +issues:write |
| 18 | +pull-requests:write |
| 19 | + |
| 20 | +steps: |
| 21 | + -uses:actions/stale@v5 |
| 22 | +with: |
| 23 | +repo-token:${{ secrets.GITHUB_TOKEN }} |
| 24 | +stale-issue-message:'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' |
| 25 | +stale-pr-message:'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.' |
| 26 | +close-issue-message:'This issue was closed because it has been stalled for 5 days with no activity.' |
| 27 | +close-pr-message:'This PR was closed because it has been stalled for 10 days with no activity.' |
| 28 | +days-before-issue-stale:30 |
| 29 | +days-before-pr-stale:45 |
| 30 | +days-before-issue-close:5 |
| 31 | +days-before-pr-close:10 |
| 32 | +stale-issue-label:'stale' |
| 33 | +stale-pr-label:'stale' |
| 34 | +exempt-issue-labels:'pinned,security,critical,in progress,planned,backlog' |