Close stale issues and PRs #341
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: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" # every day at midnight | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v9 | |
with: | |
stale-issue-message: "This issue will be closed in 7 days unless the stale label is removed, or a comment is added to the issue." | |
stale-pr-message: "This PR will be closed in 7 days unless the stale label is removed, or a comment is added to the PR." | |
close-issue-message: "This issue was closed because it has been stale for 7 days with no activity." | |
close-pr-message: "This PR was closed because it has been stale for 7 days with no activity." | |
days-before-issue-stale: 90 | |
days-before-pr-stale: 30 | |
# GitHub API rate limits number of operations daily, but we can afford to run more than the default 30 times per day | |
operations-per-run: 100 |