Added a few more texts.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 32s
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 32s
This commit is contained in:
parent
0f1b437509
commit
e251b6d813
7
index.js
7
index.js
@ -49,7 +49,7 @@ async function getAndPostPullRequests() {
|
||||
assignee: assignee,
|
||||
assignees: assigneesInput ? assigneesInput.split(",") : [],
|
||||
labels: labelsInput ? labelsInput.split(",").map(Number) : [],
|
||||
due_date: dueDate,
|
||||
due_date: dueDate ? dueDate : null,
|
||||
milestone: milestone ? parseInt(milestone, 10) : null,
|
||||
};
|
||||
|
||||
@ -76,6 +76,11 @@ async function getAndPostPullRequests() {
|
||||
body: JSON.stringify(postData),
|
||||
});
|
||||
|
||||
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