Reworked the logging again.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 32s

This commit is contained in:
Philipp Horstenkamp 2023-11-19 15:37:10 +01:00
parent e251b6d813
commit 83d7d06896
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4

View File

@ -70,6 +70,10 @@ async function getAndPostPullRequests() {
if (!targetPRFound) { if (!targetPRFound) {
// Perform the POST request // 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, { const postResponse = await fetch(url, {
method: "POST", method: "POST",
headers, headers,
@ -79,7 +83,6 @@ async function getAndPostPullRequests() {
const postResponseText = await postResponse.text(); const postResponseText = await postResponse.text();
core.info(`POST request status: ${postResponse.status}`); core.info(`POST request status: ${postResponse.status}`);
core.info(`POST response body: ${postResponseText}`); core.info(`POST response body: ${postResponseText}`);
core.info(`POST response body: ${JSON.stringify(postResponse)}`);
if (!postResponse.ok) { if (!postResponse.ok) {
throw new Error(`HTTP error! status: ${postResponse.status}`); throw new Error(`HTTP error! status: ${postResponse.status}`);