Skip to content

Add Github action to close stale issues #2981

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

Merged
merged 2 commits into from
Apr 18, 2025
Merged

Conversation

AmirhosseinPoolad
Copy link
Contributor

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.

@github-actions github-actions bot added the infra Project Infrastructure label Apr 15, 2025
Copy link
Contributor

@AlexandreSinger AlexandreSinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Amir, this is a great change! I just left some minor comments on wording.

@AlexandreSinger
Copy link
Contributor

@AmirhosseinPoolad Lets bring this up in the weekly industry sync meeting to see what people think!

The added workflow will close up to 30 old issues every day.
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.
@github-actions github-actions bot added the docs Documentation label Apr 17, 2025
@AlexandreSinger AlexandreSinger merged commit 0357aa4 into master Apr 18, 2025
36 checks passed
@AlexandreSinger AlexandreSinger deleted the ci_stale_issue branch April 18, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation infra Project Infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants