Changed the request body.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 32s
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 32s
This commit is contained in:
parent
83d7d06896
commit
769afb5c58
10
index.js
10
index.js
@ -46,11 +46,11 @@ async function getAndPostPullRequests() {
|
|||||||
body: body,
|
body: body,
|
||||||
head: branch,
|
head: branch,
|
||||||
base: base_branch,
|
base: base_branch,
|
||||||
assignee: assignee,
|
assignee: assignee || undefined, // Changed to be omitted if empty
|
||||||
assignees: assigneesInput ? assigneesInput.split(",") : [],
|
assignees: assigneesInput ? assigneesInput.split(",") : undefined, // Changed to be omitted if empty
|
||||||
labels: labelsInput ? labelsInput.split(",").map(Number) : [],
|
labels: labelsInput ? labelsInput.split(",").map(Number) : undefined, // Changed to be omitted if empty
|
||||||
due_date: dueDate ? dueDate : null,
|
due_date: dueDate || undefined, // Changed to be omitted if empty
|
||||||
milestone: milestone ? parseInt(milestone, 10) : null,
|
milestone: milestone ? parseInt(milestone, 10) : undefined, // Changed to be omitted if empty
|
||||||
};
|
};
|
||||||
|
|
||||||
// Perform the GET request to check if a similar PR exists
|
// Perform the GET request to check if a similar PR exists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user