Revert debugging

This commit is contained in:
Luke Tomlinson
2021-05-12 14:02:04 -04:00
parent ab559aee86
commit cc8ff56517
2 changed files with 10 additions and 14 deletions

10
dist/index.js vendored
View File

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

View File

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