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

Add gh action to notify and close stale issues and PRs #324

Open
CunliangGeng opened this issue Jun 30, 2022 · 2 comments
Open

Add gh action to notify and close stale issues and PRs #324

CunliangGeng opened this issue Jun 30, 2022 · 2 comments
Labels
template Related to the template itself, as opposed to the generated code

Comments

@CunliangGeng
Copy link
Member

I'd like to add a github action to notify and close inactive issues and PRs (Already done in PR #323)

Why important?
Our project partners or end users often don't know / forget to give a confirmation feedback and close the issue by themselves when the issue is actually solved. This has occurred to me again and again, wasting me much time to recheck the issues and notify them I'm going to close it.
The reason I don't want to close it before getting a confirmation is that it may force people not to ask more questions. So I prefer leaving them open until they confirm.

Solution
Using the action https://github.com/actions/stale will help solve such problems. It will give a notification if the issue is inactive for e.g 30 days, label it as stale, and if it's still inactive for next e.g. 7 days, the issue will be closed automatically. People can comment, remove the stale label, or add e.g. blocked label to keep it active, in such case, the gh action will restart.

@CunliangGeng CunliangGeng added the template Related to the template itself, as opposed to the generated code label Jun 30, 2022
@bouweandela
Copy link
Member

These timespans seem very short, would it make sense to add longer default values? For example, in this project they use 500 days before marking something stale and 28 days before closing:
https://github.com/SciTools/iris/blob/07b223ae92847cb5ce128aea8284e25d20874ccd/.github/workflows/stale.yml#L21-L25

@CunliangGeng
Copy link
Member Author

yes, these values can be set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template Related to the template itself, as opposed to the generated code
Projects
None yet
Development

No branches or pull requests

2 participants