Close stale issues and PRs #9
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
# .github/workflows/stale.yml | |
name: "Close stale issues and PRs" | |
on: | |
schedule: | |
- cron: "0 1 * * *" # Runs at 1:00 AM every day | |
jobs: | |
stale: | |
permissions: | |
issues: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v9 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: "This issue has been automatically marked as stale due to inactivity. If this is still a problem, please provide an update. Otherwise, this issue will be closed in 7 days. Thank you!" | |
close-issue-message: "This issue has been automatically closed due to inactivity. If you still need help, please feel free to reopen it. Thank you!" | |
stale-pr-message: "This pull request has been automatically marked as stale due to inactivity. If this is still a problem, please provide an update." | |
close-pr-message: "This pull request has been automatically closed due to inactivity. If you still need help, please feel free to reopen it. Thank you!" | |
days-before-stale: 30 | |
days-before-close: 7 | |
stale-issue-label: "stale" | |
stale-pr-label: "stale" | |
exempt-issue-labels: "pinned,security" | |
exempt-pr-labels: "pinned,security" |