summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-07-12 09:24:43 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-07-12 09:24:43 +0800
commit96ccab8f6f4a6e3a56d5d590626666c6aea4637a (patch)
tree13a2ccba3df6cafe7029dc30515eed617c372382 /db
parentba38931d90b6149e7bf1176dc5075b92a51466ae (diff)
downloadgitlab-ce-96ccab8f6f4a6e3a56d5d590626666c6aea4637a.tar.gz
We want letters and numbersselect-letters-and-numbers
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/19_environments.rb2
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