Skip to content

Stale Issue and PR Management #262

Stale Issue and PR Management

Stale Issue and PR Management #262

Workflow file for this run

name: Stale Issue and PR Management
on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC
workflow_dispatch: # Allow manual triggering
permissions:
issues: write
pull-requests: write
jobs:
stale:
name: Mark Stale Issues and PRs
runs-on: ubuntu-latest
steps:
- name: Stale Issues and PRs
uses: actions/stale@v9
with:
# Stale issue settings
days-before-issue-stale: 60
days-before-issue-close: 7
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs within 7 days.
If this issue is still relevant, please leave a comment to keep it open.
close-issue-message: >
This issue has been automatically closed due to inactivity. If you believe this
is still relevant, please feel free to reopen it or create a new issue.
stale-issue-label: 'stale'
# Stale PR settings
days-before-pr-stale: 30
days-before-pr-close: 7
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs within 7 days.
If you are still working on this, please leave a comment or push new commits.
close-pr-message: >
This pull request has been automatically closed due to inactivity. If you would
like to continue this work, please feel free to reopen it or create a new PR.
stale-pr-label: 'stale'
# Exempt labels - issues/PRs with these labels will never be marked as stale
exempt-issue-labels: 'pinned,security,roadmap,on-hold'
exempt-pr-labels: 'pinned,security,roadmap,on-hold'
# Only process a limited number of items per run to avoid rate limiting
operations-per-run: 30
# Remove stale label when activity occurs
remove-stale-when-updated: true
# Enable debug logging
debug-only: false