From 78de1431a4a803abae8580886babe857bdd48446 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 23 May 2024 11:00:49 +1200 Subject: [PATCH] FIX Output branches when there are too many so we can debug (#37) --- 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; }