Skip to content

Close stale issues and PRs #433

Close stale issues and PRs

Close stale issues and PRs #433

name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
permissions:
# contents: write # only for delete-branch option
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
stale-issue-message: 'This issue has been marked as stale because it has been open for 14 days with no activity. Remove the stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This pull request has been marked as stale because it has been open for 14 days with no activity. Remove the stale label or comment or this will be closed in 5 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
close-pr-message: 'This pull request was closed because it has been stalled for 5 days with no activity.'
days-before-stale: 14
days-before-close: 5
exempt-issue-labels: no-stale
exempt-pr-labels: no-stale