My PR Title #9
5
index.js
5
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}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user