Fixed the empty lists a bit.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 32s

This commit is contained in:
Philipp Horstenkamp 2023-11-19 19:41:00 +01:00
parent 7d6482c31d
commit b5d5d999c4
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4

View File

@ -47,8 +47,8 @@ async function getAndPostPullRequests() {
head: branch, head: branch,
base: base_branch, base: base_branch,
assignee: assignee || undefined, // Changed to be omitted if empty assignee: assignee || undefined, // Changed to be omitted if empty
assignees: assigneesInput ? assigneesInput.split(",") : undefined, // Changed to be omitted if empty assignees: assigneesInput ? assigneesInput.split(",") : [], // Changed to be omitted if empty
labels: labelsInput ? labelsInput.split(",").map(Number) : undefined, // 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 due_date: dueDate || undefined, // Changed to be omitted if empty
milestone: milestone ? parseInt(milestone, 10) : 0, // Changed to be omitted if empty milestone: milestone ? parseInt(milestone, 10) : 0, // Changed to be omitted if empty
}; };