Skip to content

Commit

Permalink
FIX Output branches when there are too many so we can debug (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored May 22, 2024
1 parent aeee22d commit 78de143
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion funcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 78de143

Please sign in to comment.