diff --git a/dist/index.js b/dist/index.js index 1fedd1ee..2f4e75a7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -518,14 +518,10 @@ class IssuesProcessor { // find any comments since the date const comments = yield this.listIssueComments(issue.number, sinceDate); issueLogger.info('Not filtering for debug purposes'); - // const filteredComments = comments.filter( - // comment => comment.user.type === 'User' && comment.user.login !== actor - // ); - // issueLogger.info( - // `Comments not made by actor or another bot: ${filteredComments.length}` - // ); + const filteredComments = comments.filter(comment => comment.user.type === 'User' && comment.user.login !== actor); + issueLogger.info(`Comments not made by actor or another bot: ${filteredComments.length}`); // if there are any user comments returned - return comments.length > 0; + return filteredComments.length > 0; }); } // Mark an issue as stale with a comment and a label diff --git a/src/classes/issues-processor.ts b/src/classes/issues-processor.ts index 6ba72822..af9ea5de 100644 --- a/src/classes/issues-processor.ts +++ b/src/classes/issues-processor.ts @@ -460,16 +460,16 @@ export class IssuesProcessor { const comments = await this.listIssueComments(issue.number, sinceDate); issueLogger.info('Not filtering for debug purposes') - // const filteredComments = comments.filter( - // comment => comment.user.type === 'User' && comment.user.login !== actor - // ); + const filteredComments = comments.filter( + comment => comment.user.type === 'User' && comment.user.login !== actor + ); - // issueLogger.info( - // `Comments not made by actor or another bot: ${filteredComments.length}` - // ); + issueLogger.info( + `Comments not made by actor or another bot: ${filteredComments.length}` + ); // if there are any user comments returned - return comments.length > 0; + return filteredComments.length > 0; } // Mark an issue as stale with a comment and a label