From 13d8810313bf2af1b352c655bcefde66bc6daa98 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 23 May 2024 10:57:53 +1200 Subject: [PATCH] FIX Output branches when there are too many so we can debug --- funcs.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/funcs.php b/funcs.php index 1b6d356..a449292 100644 --- a/funcs.php +++ b/funcs.php @@ -32,7 +32,8 @@ function branches( $branches = BranchLogic::getBranchesForMergeUp($githubRepository, $repoMetaData, $defaultBranch, $allRepoTags, $allRepoBranches, $composerJson); // max of 6 branches - also update action.yml if you need to increase this limit if (count($branches) > 6) { - throw new Exception('More than 6 branches to merge up. Aborting.'); + $branchesString = implode(', ', $branches); + throw new Exception("More than 6 branches to merge up: $branchesString. Aborting."); } return $branches; }