Update issues-processor.ts

This commit is contained in:
Luke Tomlinson
2021-05-12 13:35:50 -04:00
parent 3b3c3f03cd
commit 93db9b6708

View File

@@ -456,16 +456,17 @@ export class IssuesProcessor {
// find any comments since the date // find any comments since the date
const comments = await this.listIssueComments(issue.number, sinceDate); const comments = await this.listIssueComments(issue.number, sinceDate);
const filteredComments = comments.filter( issueLogger.info('Not filtering for debug purposes')
comment => comment.user.type === 'User' && comment.user.login !== actor // const filteredComments = comments.filter(
); // comment => comment.user.type === 'User' && comment.user.login !== actor
// );
issueLogger.info( issueLogger.info(
`Comments not made by actor or another bot: ${filteredComments.length}` `Comments not made by actor or another bot: ${filteredComments.length}`
); );
// if there are any user comments returned // if there are any user comments returned
return filteredComments.length > 0; return comments.length > 0;
} }
// Mark an issue as stale with a comment and a label // Mark an issue as stale with a comment and a label