From 83d7d068961a0a5b526d7e05eb43bbe85df52ac5 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 19 Nov 2023 15:37:10 +0100 Subject: [PATCH] Reworked the logging again. --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 33a33ca..4f327cc 100644 --- a/index.js +++ b/index.js @@ -70,6 +70,10 @@ async function getAndPostPullRequests() { if (!targetPRFound) { // Perform the POST request + + core.info(`URL for POST request: ${url}`); + core.info(`POST data being sent: ${JSON.stringify(postData, null, 2)}`); + const postResponse = await fetch(url, { method: "POST", headers, @@ -79,7 +83,6 @@ async function getAndPostPullRequests() { const postResponseText = await postResponse.text(); core.info(`POST request status: ${postResponse.status}`); core.info(`POST response body: ${postResponseText}`); - core.info(`POST response body: ${JSON.stringify(postResponse)}`); if (!postResponse.ok) { throw new Error(`HTTP error! status: ${postResponse.status}`);