From 54c224ef33961509cb56c162972ebbed8944f4e8 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Fri, 24 Nov 2023 19:01:41 +0100 Subject: [PATCH] Reworked the pushed response again. --- index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index a071824..30179e7 100644 --- a/index.js +++ b/index.js @@ -2,8 +2,6 @@ const core = require("@actions/core"); async function getAndPostPullRequests() { try { - core.info("Starting the action..."); - // Retrieve inputs and token const baseUrl = core.getInput("base_url") || "https://git.horstenkamp.eu"; const owner = core.getInput("owner") || process.env.GITHUB_REPOSITORY_OWNER; @@ -36,11 +34,11 @@ async function getAndPostPullRequests() { // Prepare POST data const postData = { title: title, - body: body, + body: body ? body : undefined, head: branch, base: base_branch, - assignees: assigneesInput ? assigneesInput.split(",") : [], - reviewers: reviewersInput ? reviewersInput.split(",") : [], + assignees: assigneesInput ? assigneesInput.split(",") : undefined, + reviewers: reviewersInput ? reviewersInput.split(",") : undefined, due_date: dueDate || undefined, milestone: milestone ? parseInt(milestone, 10) : 0, };