mirror of
https://github.com/actions/stale.git
synced 2025-12-10 12:07:09 +00:00
Remove stale when updated without comment (#717)
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
This commit is contained in:
4250
dist/index.js
vendored
4250
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
@@ -674,11 +674,11 @@ export class IssuesProcessor {
|
|||||||
// Should we un-stale this issue?
|
// Should we un-stale this issue?
|
||||||
if (
|
if (
|
||||||
shouldRemoveStaleWhenUpdated &&
|
shouldRemoveStaleWhenUpdated &&
|
||||||
issueHasComments &&
|
(issueHasUpdate || issueHasComments) &&
|
||||||
!issue.markedStaleThisRun
|
!issue.markedStaleThisRun
|
||||||
) {
|
) {
|
||||||
issueLogger.info(
|
issueLogger.info(
|
||||||
`Remove the stale label since the $$type has a comment and the workflow should remove the stale label when updated`
|
`Remove the stale label since the $$type has been updated and the workflow should remove the stale label when updated`
|
||||||
);
|
);
|
||||||
await this._removeStaleLabel(issue, staleLabel);
|
await this._removeStaleLabel(issue, staleLabel);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user