Add Github action to close stale issues #2981
Merged
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.
We currently have too many old and abandoned issues, which makes the issues tab not very important for maintainers.
The added workflow will close up to 30 old issues every day, starting from the oldest ones. Issues that have been inactive for more than a year will be first marked as stale, and if they remain stale after 15 days they will be automatically closed. If for any reason you want an issue to be exempt from being close by this workflow, you can mark it as 'no-stale'. The workflow runs every day at 1PM UTC or 9AM Toronto time.
I have commented out some code that does the same thing for PRs but I think it might be too much currently and we only agreed to automatically close old issues, not PRs. I left it in there in case the situation is different in the future.
Since there's a limit of 30 issues per day because of the GitHub API restrictions, this should take many weeks to go through all of the issues and would dampen the change by a good amount, which is a good thing in my opinion.