Skip to content
Open
Show file tree
Hide file tree
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
24 changes: 0 additions & 24 deletions .github/stale.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 19 * * *' # Run daily at 7pm GMT
workflow_dispatch: # Allow manual trigger

permissions:
issues: write
pull-requests: write
contents: write # Required for delete-branch option

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v10
with:
# Stale issues configuration
days-before-issue-stale: 90
days-before-issue-close: 30
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Please comment if you believe this issue should remain open.'
stale-issue-label: 'stale'
close-issue-message: 'This issue has been automatically closed due to inactivity. Please feel free to reopen if needed.'

# Stale PRs configuration
days-before-pr-stale: 90
days-before-pr-close: 30
stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs.'
stale-pr-label: 'stale'
close-pr-message: 'This pull request has been automatically closed due to inactivity. Please feel free to reopen if needed.'

# Exemptions
# Note: Renovate PRs typically have the "dependencies" label which is also excluded
exempt-pr-labels: 'pinned,dependencies,keep_open'
exempt-all-pr-assignees: false
exempt-all-issue-assignees: false

# Delete branch after closing stale PR
delete-branch: true

# Operations per run
operations-per-run: 50