From 2aa65bb976a45c89daf578cdcfa21dc4239da97b Mon Sep 17 00:00:00 2001 From: Jan Rosier Date: Mon, 23 Jan 2023 12:45:21 +0100 Subject: [PATCH] Fix recipe history url --- src/Command/RecipesCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Command/RecipesCommand.php b/src/Command/RecipesCommand.php index 022fe52e5..b8aedbd55 100644 --- a/src/Command/RecipesCommand.php +++ b/src/Command/RecipesCommand.php @@ -165,6 +165,10 @@ private function displayPackageInformation(Recipe $recipe) $lockBranch = $recipeLock['recipe']['branch'] ?? null; $lockVersion = $recipeLock['recipe']['version'] ?? $recipeLock['version'] ?? null; + if ('master' === $lockBranch && \in_array($lockRepo, ['github.com/symfony/recipes', 'github.com/symfony/recipes-contrib'])) { + $lockBranch = 'main'; + } + $status = 'up to date'; if ($recipe->isAuto()) { $status = 'auto-generated recipe';