From 8c18455f90baff211346253553d346c1f9210004 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 19 Nov 2023 13:38:18 +0100 Subject: [PATCH] Added some debugging. --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2241778..0661402 100644 --- a/index.js +++ b/index.js @@ -55,8 +55,10 @@ async function getAndPostPullRequests() { pulls, (pr) => pr.head.ref === branch && pr.base.ref === base_branch, ); - core.info(pulls[0].head.ref); - core.info(pulls[0].base.ref); + for (let pr in pulls) { + core.info(pr.head.ref); + core.info(pr.base.ref); + } if (targetPRFound) { core.info( `No open pulls found, to merge ${branch} into ${base_branch}. Trying to create a new PR.`,