Added PR actions
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
0119f2dae1
commit
c17dce6a79
@ -59,3 +59,4 @@ jobs:
|
|||||||
body: My PR Body
|
body: My PR Body
|
||||||
assignees: Philipp
|
assignees: Philipp
|
||||||
reviewers: Philipp
|
reviewers: Philipp
|
||||||
|
labels: chore
|
||||||
|
@ -24,6 +24,10 @@ inputs:
|
|||||||
description: Comma-separated list of reviewers for the pull request
|
description: Comma-separated list of reviewers for the pull request
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
labels:
|
||||||
|
desdescription: Comma-separated list of labels for the pull request
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
outputs:
|
outputs:
|
||||||
pull_request_url:
|
pull_request_url:
|
||||||
description: URL of the created pull request
|
description: URL of the created pull request
|
||||||
|
9
index.js
9
index.js
@ -1,5 +1,4 @@
|
|||||||
const core = require("@actions/core");
|
const core = require("@actions/core");
|
||||||
const _ = require("underscore");
|
|
||||||
|
|
||||||
async function getAndPostPullRequests() {
|
async function getAndPostPullRequests() {
|
||||||
try {
|
try {
|
||||||
@ -41,10 +40,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(",") : [], // 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