Skip to content

Close Stale Issues

Close Stale Issues #4

Workflow file for this run

name: Close Stale Issues
on:
schedule:
# Run every Monday at 00:00 UTC
- cron: '0 0 * * 1'
workflow_dispatch: # Allow manual trigger
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Mark and close stale issues
uses: actions/stale@v9
with:
# Issues
stale-issue-message: |
This issue has been automatically marked as stale because it has not had
recent activity in the last 60 days. It will be closed in 14 days if no
further activity occurs.
If this is still relevant, please comment to keep it open.
Thank you for your contribution! 🙏
close-issue-message: |
This issue has been automatically closed due to inactivity.
If you believe this is still relevant, please reopen or create a new issue.
days-before-stale: 60
days-before-close: 14
stale-issue-label: 'stale'
exempt-issue-labels: 'pinned,security,critical'
# Pull Requests
stale-pr-message: |
This pull request has been automatically marked as stale because it has not had
recent activity in the last 30 days. It will be closed in 7 days if no
further activity occurs.
Please rebase and resolve conflicts if needed.
close-pr-message: |
This pull request has been automatically closed due to inactivity.
Feel free to reopen if you plan to continue working on this.
days-before-pr-stale: 30
days-before-pr-close: 7
stale-pr-label: 'stale'
exempt-pr-labels: 'pinned,security,critical'
# General settings
operations-per-run: 30
remove-stale-when-updated: true