Skip to content

Commit

Permalink
fix: review app number
Browse files Browse the repository at this point in the history
  • Loading branch information
takaishi committed Nov 10, 2024
1 parent 5945346 commit 25a5125
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/helpers/env_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ def env_name
end

def review_app_number
ENV['DREAMKAST_NAMESPACE'].gsub(/dreamkast-dk-/, '').to_i
m = ENV['DREAMKAST_NAMESPACE'].match(/dreamkast-dev-dk-(.*)-dk/)
if m
m[1]
else
raise('cannot get review app number')
end
end

def review_app?
Expand Down

0 comments on commit 25a5125

Please sign in to comment.