Print comments

This commit is contained in:
Luke Tomlinson
2021-06-24 15:28:15 -04:00
parent b95063d0a1
commit cce770077c
2 changed files with 2 additions and 0 deletions

1
dist/index.js vendored
View File

@@ -625,6 +625,7 @@ class IssuesProcessor {
// find any comments since the date
const comments = yield this.listIssueComments(issue.number, sinceDate);
core.debug(`The actor is: ${actor}`);
core.debug(`The comments are ${JSON.stringify(comments)}`);
const filteredComments = comments.filter(comment => comment.user.type === 'User' && comment.user.login !== actor);
issueLogger.info(`Comments not made by actor or another bot: ${logger_service_1.LoggerService.cyan(filteredComments.length)}`);
// if there are any user comments returned

View File

@@ -689,6 +689,7 @@ export class IssuesProcessor {
const comments = await this.listIssueComments(issue.number, sinceDate);
core.debug(`The actor is: ${actor}`)
core.debug(`The comments are ${JSON.stringify(comments)}`)
const filteredComments = comments.filter(
comment => comment.user.type === 'User' && comment.user.login !== actor
);