From cce770077c16f817490fc25bdf8925a74bb798aa Mon Sep 17 00:00:00 2001 From: Luke Tomlinson Date: Thu, 24 Jun 2021 15:28:15 -0400 Subject: [PATCH] Print comments --- dist/index.js | 1 + src/classes/issues-processor.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index 396d7150..61d9bdf5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 diff --git a/src/classes/issues-processor.ts b/src/classes/issues-processor.ts index 93051972..cc5a7b85 100644 --- a/src/classes/issues-processor.ts +++ b/src/classes/issues-processor.ts @@ -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 );