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.`,