Reduced the pr post a bit.
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
1f01d0d823
commit
9c5c25c7a0
8
index.js
8
index.js
@ -45,10 +45,10 @@ async function getAndPostPullRequests() {
|
|||||||
body: body,
|
body: body,
|
||||||
head: branch,
|
head: branch,
|
||||||
base: base_branch,
|
base: base_branch,
|
||||||
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
|
||||||
milestone: milestone ? parseInt(milestone, 10) : 0, // Changed to be omitted if empty
|
// milestone: milestone ? parseInt(milestone, 10) : 0, // 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
|
||||||
const getResponse = await fetch(`${url}?state=open&head=${branch}`, {
|
const getResponse = await fetch(`${url}?state=open&head=${branch}`, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user