https://github.com/jsoref/stale-bot-debug/actions/runs/5828506506/job/15806335430#step:2:97
::group::[#2] Issue #2
[#2] Issue #2
...
[#2] Removing all the labels specified via the labels-to-remove-when-stale (https://github.com/actions/stale#labels-to-remove-when-stale) option.
[#2] Removing the label "label-to-add-when-unstale" from this issue...
Error: [#2] Error when removing the label: "Label does not exist"
The quotes on this last line make it look like the action was trying to
remove a label named `Label does not exist`.
This change removes the quotes to make it clear that the text is just an
error message (which is implied by the `:`) as opposed to the name of a
label, which is the reading one gets from the inclusion of additional
quotes around the text.
The issue that the stale action finds in this log excerpt *is* stale,
it just isn't marked that way yet. Saying that the issue isn't stale
is misleading and contradictory.
https://github.com/jsoref/stale-bot-debug/actions/runs/5828506506/job/15806335430#step:2:97
::group::[#2] Issue #2
[#2] Issue #2
[#2] Found this issue last updated at: 2023-08-09T14:33:12Z
...
[#2] This issue is not stale
...
[#2] This issue should be stale based on the last update date the 09-08-2023 (2023-08-09T14:33:12Z)
[#2] This issue should be marked as stale based on the option days-before-issue-stale (https://github.com/actions/stale#days-before-issue-stale) (1)
[#2] Marking this issue as stale
* Add new 'include-only-assigned' option
If set, only issues containing assignees will be processed
* Test new flag
* Update code comment
* Update src/classes/issues-processor.ts
Co-authored-by: Francesco Renzi <rentziass@github.com>
* Update index.js with typo fix
Co-authored-by: Francesco Renzi <rentziass@github.com>
The existing logic for `remove-stale-when-updated` only considers presence of
comments, ignoring the value of `issueHasUpdate`.
This commits fixes it so it follows the documented behaviour for that setting.
Fixes#715