Skip to content

Close Stale Issues

Close Stale Issues #56

Workflow file for this run

name: Close Stale Issues
on:
# Runs daily at 10:00 AM UTC
schedule:
- cron: '0 10 * * *'
# Runs at issue comment
issue_comment:
types: [created]
# Allow manual trigger
workflow_dispatch:
jobs:
manage-stale-issues:
runs-on: ubuntu-24.04
steps:
- name: Close Stale Issues
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Issue-specific configuration
stale-issue-message: >
👋 This issue has been automatically marked as stale due to inactivity.
If this issue is still relevant, please comment to keep it open.
Without activity, it will be closed in 7 days.
close-issue-message: >
🔒 This issue has been automatically closed due to prolonged inactivity.
Feel free to reopen if the issue is still valid.
# More nuanced staleness criteria
days-before-issue-stale: 7 # Mark as stale after 7 days of inactivity
days-before-issue-close: 7 # Close 7 days after being marked stale
# More specific labeling
stale-issue-label: 'no-issue-activity'
close-issue-label: 'closed-no-issue-activity'
# Refined issue selection, Only issues with both bug and question label
only-issue-labels: 'bug, question'
# Issues will be closed as "Not Planned" by default.