From 3574cb5f6727e911ac94d365fabfac3c047ea168 Mon Sep 17 00:00:00 2001 From: Artjom Kurapov Date: Wed, 13 Sep 2023 12:25:48 +0300 Subject: [PATCH] ... --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 271e7a1..f9e78b8 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ async function reviewPR() { const gitDiff = fs.readFileSync('diff-file', { encoding: 'utf8', flag: 'r' }); console.log('git diff:', gitDiff); - RAW_TEXT += `Here is a git diff for changes: ${gitDiff}` + RAW_TEXT += `Here is a git diff for changes: ${gitDiff}\n\n` const ctx = { owner: process.env.PR_OWNER, @@ -80,10 +80,10 @@ async function reviewPR() { const pr_title = data.repository.pullRequest.title const pr_descr = data.repository.pullRequest.body - RAW_TEXT += `Last pull request was titled "${pr_title} and had a description "${pr_descr}".`; + RAW_TEXT += `Last pull request was titled "${pr_title} and had a description "${pr_descr}".\n`; const commit_msg = data.repository.pullRequest.commits.edges[0].node.commit.message - RAW_TEXT += `Last commit message was "${commit_msg}". ` + RAW_TEXT += `Last commit message was "${commit_msg}".\n` for (let msg of data.repository.pullRequest.commits.edges[0].node.commit.tree.entries) { if (msg.object?.text) {