This commit is contained in:
Luke Tomlinson
2021-05-12 13:37:22 -04:00
parent 93db9b6708
commit ffc3c749f4
2 changed files with 11 additions and 6 deletions

11
dist/index.js vendored
View File

@@ -515,10 +515,15 @@ class IssuesProcessor {
} }
// find any comments since the date // find any comments since the date
const comments = yield this.listIssueComments(issue.number, sinceDate); const comments = yield this.listIssueComments(issue.number, sinceDate);
const filteredComments = comments.filter(comment => comment.user.type === 'User' && comment.user.login !== actor); issueLogger.info('Not filtering for debug purposes');
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 // 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

View File

@@ -461,9 +461,9 @@ export class IssuesProcessor {
// comment => comment.user.type === 'User' && comment.user.login !== actor // 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 comments.length > 0; return comments.length > 0;