From c9eb29d73f4327d5e4b58e1d28433d386bd8d80c Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 19 Nov 2023 04:16:48 +0100 Subject: [PATCH] Some testing. --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 6b5a373..a87b2e2 100644 --- a/index.js +++ b/index.js @@ -15,8 +15,7 @@ async function getAndPostPullRequests() { core.getInput("repo") || process.env.GITHUB_REPOSITORY.split("/")[1]; core.info(`Repository Name: ${repo}`); - const postData = JSON.parse(core.getInput("post_data")); - core.info(`Post Data: ${JSON.stringify(postData)}`); + // core.info(`Post Data: ${JSON.stringify(postData)}`); const githubToken = core.getInput("github_token"); core.info("GitHub token retrieved."); @@ -45,7 +44,7 @@ async function getAndPostPullRequests() { // Logic to decide if a POST request is needed if (pulls.length === 0) { core.info("No open pulls found, proceeding with POST request..."); - + return { message: "Abort for thesting" }; // Perform the POST request const postResponse = await fetch(url, { method: "POST",