Some testing.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 36s

This commit is contained in:
Philipp Horstenkamp 2023-11-19 04:16:48 +01:00
parent 2fa3a56354
commit c9eb29d73f
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4

View File

@ -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",