From a0f421facbb1995d70e351046125075c4ada06a9 Mon Sep 17 00:00:00 2001 From: Artjom Kurapov Date: Wed, 13 Sep 2023 00:29:47 +0300 Subject: [PATCH] ... --- dist/index.js | 3 ++- index.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6997706..527fdd6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -11030,7 +11030,8 @@ async function reviewPR() { const commit_msg = data.repository.pullRequest.commits.edges[0].node.commit.message RAW_TEXT += `Commit message is "${commit_msg}".` - for(msg of data.repository.pullRequest.commits.edges[0].node.commit.tree.entries){ + for(let msg of data.repository.pullRequest.commits.edges[0].node.commit.tree.entries){ + console.log(msg) if (msg.object?.text.length > 0) { RAW_TEXT += `File "${msg.path}" contents: ${msg.object.text}` } diff --git a/index.js b/index.js index b294f96..398887a 100644 --- a/index.js +++ b/index.js @@ -77,7 +77,8 @@ async function reviewPR() { const commit_msg = data.repository.pullRequest.commits.edges[0].node.commit.message RAW_TEXT += `Commit message is "${commit_msg}".` - for(msg of data.repository.pullRequest.commits.edges[0].node.commit.tree.entries){ + for(let msg of data.repository.pullRequest.commits.edges[0].node.commit.tree.entries){ + console.log(msg) if (msg.object?.text.length > 0) { RAW_TEXT += `File "${msg.path}" contents: ${msg.object.text}` }