Skip to content

Commit

Permalink
Remove stale when updated without comment
Browse files Browse the repository at this point in the history
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
  • Loading branch information
0x5c committed Apr 15, 2022
1 parent 57708ae commit f720fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/issues-processor.ts
Expand Up @@ -667,9 +667,9 @@ export class IssuesProcessor {
}

// Should we un-stale this issue?
if (shouldRemoveStaleWhenUpdated && issueHasComments) {
if (shouldRemoveStaleWhenUpdated && (issueHasUpdate || issueHasComments)) {
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);

Expand Down

0 comments on commit f720fa2

Please sign in to comment.