My PR Title #11
2
index.js
2
index.js
@ -13,7 +13,6 @@ async function getAndPostPullRequests() {
|
|||||||
const base_branch = core.getInput("base_branch") || "main";
|
const base_branch = core.getInput("base_branch") || "main";
|
||||||
const title = core.getInput("title");
|
const title = core.getInput("title");
|
||||||
const body = core.getInput("body") || "";
|
const body = core.getInput("body") || "";
|
||||||
const assignee = core.getInput("assignee");
|
|
||||||
const assigneesInput = core.getInput("assignees");
|
const assigneesInput = core.getInput("assignees");
|
||||||
const labelsInput = core.getInput("labels");
|
const labelsInput = core.getInput("labels");
|
||||||
const dueDate = core.getInput("due_date");
|
const dueDate = core.getInput("due_date");
|
||||||
@ -46,7 +45,6 @@ async function getAndPostPullRequests() {
|
|||||||
body: body,
|
body: body,
|
||||||
head: branch,
|
head: branch,
|
||||||
base: base_branch,
|
base: base_branch,
|
||||||
assignee: assignee || undefined, // Changed to be omitted if empty
|
|
||||||
assignees: assigneesInput ? assigneesInput.split(",") : [], // 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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user