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.
This commit is contained in:
Michal Čihař 2021-02-05 12:53:23 +01:00 committed by GitHub
parent 7164109781
commit d21d307fd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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