Open ForNeVeR opened 7 months ago
Hello @ForNeVeR Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.
I don’t know about the log messages but I think when you (un)assign someone that counts as an update.
I think when you (un)assign someone that counts as an update.
This behavior would be absolutely ok for me. However, I changed the assignee list last time at 19th of Dec, and the issue is still not closed, despite the bot being configured to close the issue in 14 days after the last update.
I have figured it out, though I don't know what to do with that knowledge now.
So, the reason is that the bot won't close an issue if there were any comments after the issue was marked as "stale".
In my case, the actual use case goes like that:
If the info is not enough, I ask for clarifications and do not remove the label.
My idea is that the stale label is in place, thus the timer is now ticking again.
But in reality it seems I should set up the bot to remove the label on any comments and reapply it manually.
I no longer believe this is a bug, but I'd like to leave this as a feature request: I want an option to not consider such comments as preventing the issue from being closed. I'd like the bot to treat them just as normal updates: delaying the close, but not totally preventing it.
(Notably, in this case there are really no comments, but I've changed the issue assignee, and that seems to be considered as a comment as well.)
Description: Bot is unable to close several issues that, I believe, it should actually close. This may be a problem similar to #1007, though that one is closed as not reproducing in v8, and I am on v9 already and it still happens.
Action version: I use
stale@v9
.Platform:
Runner type:
Repro steps:
In my repository, I use the stale bot with the following configuration:
So, I want it to take the issues with a manually-assigned label
status:waiting-for-info
, and close them if there were no updates in 14 days.It was working well for some of the issues, but I now see several issues it is unable to close.
Let's consider this particular issue: https://github.com/ForNeVeR/AvaloniaRider/issues/303
Expected behavior: It has been last changed at 2023-12-19, and today's 2024-02-10, more than 14 days have definitely passed. So I expect the bot to close the issue.
Actual behavior: Actually, bot refuses to do anything about this issue. Here's a relevant log from the last execution, happened today:
From the message
Stale issue is not old enough to close yet (hasComments? true, hasUpdate? false)
, I conclude it doesn't like something that's been happening in the issue comments. But there weren't any new comments after the issue has been marked as stale for the last time. It has been marked as stale and not stale several times during its lifetime, though, so perhaps something about that messes up the bot logic?