Repository navigation
ci: Close pull requests that have been inactive for two months - #817
Merged
Merged
Conversation
Runs actions/stale once a day. A pull request with no activity for 60 days gets the stale label and a comment, and is closed 14 days later unless someone pushes, comments or reviews in the meantime. Issues are left alone. actions: write lets the action save and replace its state in the actions cache between runs, and issues: write and pull-requests: write cover the label, the comments and closing. The workflow can also be started by hand.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a daily workflow that closes pull requests nobody has worked on for a while, using actions/stale.
How it works
stalelabel and a comment saying it will be closed in 14 days.The workflow runs once a day and can also be started by hand from the Actions tab.
Counting activity
The action counts any activity, not just the author's. In practice a review from a maintainer is usually the last thing that happens before an author goes quiet, so it measures the right thing. A pull request waiting for review for 60 days would also be marked, and a comment from anyone keeps it open.
On the first run
Posted by Claude on behalf of @anakinj.