Close stale issues and PRs #5
Workflow file for this run
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: '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 |