Reworked the pushed response again.
This commit is contained in:
parent
78127df1f4
commit
54c224ef33
8
index.js
8
index.js
@ -2,8 +2,6 @@ const core = require("@actions/core");
|
|||||||
|
|
||||||
async function getAndPostPullRequests() {
|
async function getAndPostPullRequests() {
|
||||||
try {
|
try {
|
||||||
core.info("Starting the action...");
|
|
||||||
|
|
||||||
// Retrieve inputs and token
|
// Retrieve inputs and token
|
||||||
const baseUrl = core.getInput("base_url") || "https://git.horstenkamp.eu";
|
const baseUrl = core.getInput("base_url") || "https://git.horstenkamp.eu";
|
||||||
const owner = core.getInput("owner") || process.env.GITHUB_REPOSITORY_OWNER;
|
const owner = core.getInput("owner") || process.env.GITHUB_REPOSITORY_OWNER;
|
||||||
@ -36,11 +34,11 @@ async function getAndPostPullRequests() {
|
|||||||
// Prepare POST data
|
// Prepare POST data
|
||||||
const postData = {
|
const postData = {
|
||||||
title: title,
|
title: title,
|
||||||
body: body,
|
body: body ? body : undefined,
|
||||||
head: branch,
|
head: branch,
|
||||||
base: base_branch,
|
base: base_branch,
|
||||||
assignees: assigneesInput ? assigneesInput.split(",") : [],
|
assignees: assigneesInput ? assigneesInput.split(",") : undefined,
|
||||||
reviewers: reviewersInput ? reviewersInput.split(",") : [],
|
reviewers: reviewersInput ? reviewersInput.split(",") : undefined,
|
||||||
due_date: dueDate || undefined,
|
due_date: dueDate || undefined,
|
||||||
milestone: milestone ? parseInt(milestone, 10) : 0,
|
milestone: milestone ? parseInt(milestone, 10) : 0,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user