From 8624adf737a97d8140edcb76920ce0db68814d0d Mon Sep 17 00:00:00 2001 From: Chris Lowder Date: Fri, 30 Nov 2018 14:46:20 +0000 Subject: [PATCH] Heroku truncates app name to create prefix Heroku will truncate the name of your application to 22 characters before setting it as your review app prefix. --- bin/pr_app | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pr_app b/bin/pr_app index 553cafa..1e59e5b 100755 --- a/bin/pr_app +++ b/bin/pr_app @@ -9,7 +9,7 @@ if ARGV.empty? else review_app_number = ARGV.first staging_git_remote = Open3.capture3("git remote get-url staging")[0].strip - review_app_prefix = staging_git_remote.split("/").last.gsub(/\.git\Z/, "") + review_app_prefix = staging_git_remote.split("/").last.gsub(/\.git\Z/, "")[0, 22] exit Parity::Environment.new( "#{review_app_prefix}-pr-#{review_app_number}",