Skip to content

Commit

Permalink
Log why issue is not marked as stale (#301)
Browse files Browse the repository at this point in the history
This might help to understand some situations as described in #299.
  • Loading branch information
nijel committed Feb 5, 2021
1 parent 7164109 commit d21d307
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/IssueProcessor.ts
Expand Up @@ -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
Expand Down

0 comments on commit d21d307

Please sign in to comment.