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 };