diff options
author | Nick Thomas <nick@gitlab.com> | 2018-07-12 09:59:04 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-07-12 09:59:04 +0000 |
commit | 66c3007ccb7b41226c4264c00c281b09ee729dd4 (patch) | |
tree | f4cb821a780b1003652caf4bdb381e579fbcd7d9 | |
parent | 80ea3710c7797132824ecad018aeca147efec2d2 (diff) | |
parent | 96ccab8f6f4a6e3a56d5d590626666c6aea4637a (diff) | |
download | gitlab-ce-66c3007ccb7b41226c4264c00c281b09ee729dd4.tar.gz |
Merge branch 'select-letters-and-numbers' into 'master'
Match against having letters and numbers for environment name
See merge request gitlab-org/gitlab-ce!20570
-rw-r--r-- | db/fixtures/development/19_environments.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/fixtures/development/19_environments.rb b/db/fixtures/development/19_environments.rb index 65089f6ba4e..3e227928a29 100644 --- a/db/fixtures/development/19_environments.rb +++ b/db/fixtures/development/19_environments.rb @@ -30,7 +30,7 @@ class Gitlab::Seeder::Environments def create_merge_request_review_deployments! @project .merge_requests - .select { |mr| mr.source_branch.match(/[^a-zA-Z0-9]+/) } + .select { |mr| mr.source_branch.match?(/[a-zA-Z0-9]+/) } .sample(4) .each do |merge_request| next unless merge_request.diff_head_sha |