diff --git a/lib/shared/branchability.rb b/lib/shared/branchability.rb index 1c64498..8a0efea 100644 --- a/lib/shared/branchability.rb +++ b/lib/shared/branchability.rb @@ -19,7 +19,7 @@ module Shared user = parts.shift standard = parts.shift - error "invalid user: #{user}" unless ENV['USER'] == user + error "invalid user: #{user}" unless [ENV['FEATURE_USER'],ENV['USER']].include? user error "invalid branch: #{standard}" unless standard_branches.include? standard feature = parts.join('-') { user: user, standard: standard, feature: feature }