Skip to content

Close stale issues and PRs #3

Close stale issues and PRs

Close stale issues and PRs #3

Workflow file for this run

name: Close stale issues and PRs
on:
schedule:
- cron: '30 1 * * *' # Run daily at 1:30 AM UTC
workflow_dispatch: # Allow manual trigger
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
# Issue settings
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed in 7 days if no further activity occurs.
Thank you for your contributions.
close-issue-message: >
This issue was closed because it has been stale for 7 days with no activity.
Feel free to reopen if this is still relevant.
days-before-issue-stale: 60
days-before-issue-close: 7
stale-issue-label: 'stale'
# PR settings
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.
close-pr-message: >
This pull request was closed because it has been stale for 14 days with no activity.
Feel free to reopen if you'd like to continue working on this.
days-before-pr-stale: 60
days-before-pr-close: 14
stale-pr-label: 'stale'
# Exempt labels - items with these labels won't be marked stale
exempt-issue-labels: 'pinned,security,bug,enhancement'
exempt-pr-labels: 'pinned,security,work-in-progress'
# Don't stale items with milestones
exempt-all-milestones: true