Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close stale issues and PRs after 2 years of inactivity #6746

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Changes from 1 commit
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
25 changes: 25 additions & 0 deletions .github/workflows/close-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Close stale issues and pull requests"
on:
workflow_dispatch:
schedule:
- cron: "8 5 * * *" # arbitrary time not to DDOS GitHub
dmathieu marked this conversation as resolved.
Show resolved Hide resolved

permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 14 days.'
close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.'
close-issue-message: 'This issue has been closed as inactive because it has been stale for 2 years with no activity.'
close-issue-label: 'closed as inactive'
days-before-pr-stale: 730
days-before-issue-stale: 730
days-before-pr-close: 744
days-before-issue-close: 744
exempt-issue-labels: 'never stale'
exempt-pr-labels: 'never stale'
Loading