Created a first draft of this action. #14

Merged
Philipp merged 68 commits from draft into main 2023-11-19 23:21:49 +01:00
803 changed files with 54119 additions and 0 deletions
Showing only changes of commit e251b6d813 - Show all commits

View File

@ -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}`);
}