Skip to content

Commit

Permalink
Heroku truncates app name to create prefix
Browse files Browse the repository at this point in the history
Heroku will truncate the name of your application to 22 characters
before setting it as your review app prefix.
  • Loading branch information
clowder authored and geoffharcourt committed Nov 30, 2018
1 parent 083060d commit 8624adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pr_app
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 8624adf

Please sign in to comment.