Fix logging for items transitioning to stale

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
This commit is contained in:
Josh Soref 2023-08-11 09:08:24 -04:00
parent 184e7afe93
commit c9d32d2c23
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -603,7 +603,7 @@ class IssuesProcessor {
} }
// Determine if this issue needs to be marked stale first // Determine if this issue needs to be marked stale first
if (!issue.isStale) { if (!issue.isStale) {
issueLogger.info(`This $$type is not stale`); issueLogger.info(`This $$type is not marked stale`);
const shouldIgnoreUpdates = new ignore_updates_1.IgnoreUpdates(this.options, issue).shouldIgnoreUpdates(); const shouldIgnoreUpdates = new ignore_updates_1.IgnoreUpdates(this.options, issue).shouldIgnoreUpdates();
// Should this issue be marked as stale? // Should this issue be marked as stale?
let shouldBeStale; let shouldBeStale;

View File

@ -446,7 +446,7 @@ export class IssuesProcessor {
// Determine if this issue needs to be marked stale first // Determine if this issue needs to be marked stale first
if (!issue.isStale) { if (!issue.isStale) {
issueLogger.info(`This $$type is not stale`); issueLogger.info(`This $$type is not marked stale`);
const shouldIgnoreUpdates: boolean = new IgnoreUpdates( const shouldIgnoreUpdates: boolean = new IgnoreUpdates(
this.options, this.options,