From b5d5d999c4d500cf032bf5f5bcfec9b25d471f9f Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 19 Nov 2023 19:41:00 +0100 Subject: [PATCH] Fixed the empty lists a bit. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0f14fdf..dfa8fc1 100644 --- a/index.js +++ b/index.js @@ -47,8 +47,8 @@ async function getAndPostPullRequests() { head: branch, base: base_branch, assignee: assignee || undefined, // Changed to be omitted if empty - assignees: assigneesInput ? assigneesInput.split(",") : undefined, // Changed to be omitted if empty - labels: labelsInput ? labelsInput.split(",").map(Number) : undefined, // Changed to be omitted if empty + assignees: assigneesInput ? assigneesInput.split(",") : [], // Changed to be omitted if empty + labels: labelsInput ? labelsInput.split(",").map(Number) : [], // Changed to be omitted if empty due_date: dueDate || undefined, // Changed to be omitted if empty milestone: milestone ? parseInt(milestone, 10) : 0, // Changed to be omitted if empty };