Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 'Close stale issues and PRs'

on:
schedule:
# Run daily at 1:30 AM UTC
- cron: '30 1 * * *'
workflow_dispatch: # Allow manual trigger

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
days-before-stale: 30
days-before-close: 7

stale-issue-message: |
This issue is stale because it has been open 30 days with no activity.
Remove the stale label or comment or this will be closed in 7 days.
stale-pr-message: |
This PR is stale because it has been open 30 days with no activity.
Remove the stale label or comment or this will be closed in 7 days.

close-issue-message: |
This issue was closed because it has been stalled for 7 days with no activity.
close-pr-message: |
This PR was closed because it has been stalled for 7 days with no activity.

stale-issue-label: 'stale'
stale-pr-label: 'stale'

exempt-issue-labels: 'pinned,security,enhancement'
exempt-pr-labels: 'pinned,security,work-in-progress,draft'

operations-per-run: 100