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
This commit is contained in:
commit
66c3007ccb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue