| 1 |
name: 'Close stale issues' |
| 2 |
|
| 3 |
# Default to 'contents: read', which grants actions to read commits. |
| 4 |
# |
| 5 |
# If any permission is set, any permission not included in the list is |
| 6 |
# implicitly set to "none". |
| 7 |
# |
| 8 |
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions |
| 9 |
permissions: |
| 10 |
contents: read |
| 11 |
|
| 12 |
on: |
| 13 |
schedule: |
| 14 |
- cron: '0 0 * * 0,3' # at midnight UTC every Sunday and Wednesday |
| 15 |
jobs: |
| 16 |
stale: |
| 17 |
runs-on: ubuntu-latest |
| 18 |
permissions: |
| 19 |
issues: write |
| 20 |
pull-requests: write |
| 21 |
steps: |
| 22 |
- uses: actions/stale@v9 |
| 23 |
with: |
| 24 |
repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 25 |
stale-issue-message: > |
| 26 |
This issue has been automatically marked as stale because it has not had |
| 27 |
recent activity. It will be closed if no further activity occurs. Thank you |
| 28 |
for your contributions. |
| 29 |
days-before-issue-stale: 150 # marks stale after 5 months |
| 30 |
days-before-issue-close: 30 # closes 1 month after being marked with no action |
| 31 |
stale-issue-label: "stale" |
| 32 |
exempt-issue-labels: "kind/feature,kind/enhancement" |
| 33 |
|