From 2edc1ba5ed473d0723cbf94680a93b1c0ebb9f5b Mon Sep 17 00:00:00 2001 From: Isaac Parker Date: Mon, 21 Oct 2024 22:48:43 -0600 Subject: [PATCH] lowercase branch name in URL generation (#94) Signed-off-by: Isaac Parker --- lib/pull_preview/github_sync.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pull_preview/github_sync.rb b/lib/pull_preview/github_sync.rb index d7025fb..add29a7 100644 --- a/lib/pull_preview/github_sync.rb +++ b/lib/pull_preview/github_sync.rb @@ -456,7 +456,7 @@ def instance_subdomain components = [] components.push(deployment_variant) if deployment_variant components.push(*["pr", pr_number]) if pr_number - components.push(branch.split("/").last) + components.push(branch.split("/").last.downcase) Instance.normalize_name(components.join("-")) end end