-
Notifications
You must be signed in to change notification settings - Fork 386
Add stale comment on issues manually labled as stale #188
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
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
unstale |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Unstale |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
i guess again, unstale |
I do not think that there is a way to know if a stale label was added automatically or manually during the cron job workflow. The "good way" to do it IMO would be to use the GitHub feature to run an action when a label is added to an issue or a PR, check if it's the stale one and add a comment. Checking the comments would not be a safe solution either IMO because we don't have a date when a label is added so we can't compare the fact that a stale label is here with the fact that a related comment was added. TL;DR: hard one IMO! |
How about a label "mark stale" |
Good idea, we could have a dedicated label to indicate that we want to speedup the stale action manually. I do think though that the closing workflow is based on the date of the label so it would not work as expected to close an issue/PR 😢 |
I just saw that in fact we can find a label's creation date 🎉 |
Possible implementation:
@TheOneRing @hasezoey do you think I missed something or is there something you don't agree with please? |
just to clarify, you mean to use the manually added label, add the comment, but wont add the normal "stale" label?
is this meant in relation to Pull Request stales? just wanna clarify these things, otherwise LGTM 👍 |
LGMT I imagined something like "Label mark as stale" -> "Label stale, stale commend" -> Normal flow |
@hasezoey yes, the manual stale label workflow will work on it's own and it will be separated completely from the stale label workflow. |
@TheOneRing @hasezoey I have doubts based on the implementation I proposed. If bypass it is then ALL the rules of the stale by idle should be applied as well. |
i saw it like to be able to add an normal-stale (or admin-stale) label, while ignoring exempt labels, and times that would normally trigger an stale (and then wait for the specified time before closing) |
@hasezoey thank you for the reply. In that case the implementation I proposed seems good. In fact, both kind of behaviours can be a feature so I prefer to have a feedback from @TheOneRing as well. I proposed |
yes |
Sounds good, so basically the "needs info" label many repos use and after the default stale period it would get marked as stale ? :) |
this would mean when the |
Well initially I had the 7 days period in mind, that was before we got the start date process, for issues that look stale and so I just can get the default stale comment. |
@TheOneRing rephrasing: Sometimes you saw and review an issue and you are waiting for the author's response to take any further action. It would mark as stale way sooner - instead of being based on the issue activity. Option 1: Option 2: Both are convenient because if the user reply then it will unstale automatically. Explained like this, even for me it gave me a better vision and I think the option 2 is basically the more logical one but IMO. |
I'm not sure you can check who set the stale label.
|
Yes, we can know it.
Yes, it can be done BUT the default workflow check if the issue is stale based on the last activity for a given issue and compare it with a number of days from the It would be very convenient that way since we won't need to add a new option. |
This would increase the usability in setups where automatic marking as stale is not possible
The text was updated successfully, but these errors were encountered: