Skip to content

Close Stale Issues

Close Stale Issues #78

Workflow file for this run

name: Close Stale Issues
on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight UTC
workflow_dispatch: # Allow manual trigger
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# --- Stale settings ---
days-before-stale: 30 # Mark as stale after 30 days of inactivity
days-before-close: 7 # Close 7 days after being marked stale
stale-issue-label: 'stale'
# --- Messages ---
stale-issue-message: >
This issue has been automatically marked as stale because it has not
had any activity in the last 30 days. It will be closed in 7 days if
no further activity occurs. If this issue is still relevant, please
leave a comment to keep it open.
close-issue-message: >
This issue was closed automatically after being stale for 7 days
with no further activity. Feel free to reopen if this is still relevant.
# --- Exemptions ---
exempt-issue-labels: 'pinned,security,bug' # Never stale these
exempt-all-assignees: true # Skip assigned issues