From d21d307fd87bde7f0f120c92c6909e8a1fe3981c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 5 Feb 2021 12:53:23 +0100 Subject: [PATCH] Log why issue is not marked as stale (#301) This might help to understand some situations as described in https://github.com/actions/stale/issues/299. --- src/IssueProcessor.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/IssueProcessor.ts b/src/IssueProcessor.ts index f74260db7..8be9fec43 100644 --- a/src/IssueProcessor.ts +++ b/src/IssueProcessor.ts @@ -283,6 +283,10 @@ export class IssueProcessor { ); await this._markStale(issue, staleMessage, staleLabel, skipMessage); issue.isStale = true; // this issue is now considered stale + } else if (!issue.isStale) { + issueLogger.info( + `Not marking as stale: shouldBeStale=${shouldBeStale}, shouldMarkAsStale=${shouldMarkAsStale}` + ); } // process the issue if it was marked stale