diff options
Diffstat (limited to 'db/fixtures/development/04_labels.rb')
-rw-r--r-- | db/fixtures/development/04_labels.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/fixtures/development/04_labels.rb b/db/fixtures/development/04_labels.rb index aff8331a191..5f0d7f2d8be 100644 --- a/db/fixtures/development/04_labels.rb +++ b/db/fixtures/development/04_labels.rb @@ -12,7 +12,7 @@ class Gitlab::Seeder::GroupLabels @label_per_group.times do label_title = FFaker::Product.brand Labels::CreateService - .new(title: label_title, color: "##{Digest::MD5.hexdigest(label_title)[0..5]}") + .new(title: label_title, color: "#{::Gitlab::Color.color_for(label_title)}") .execute(group: @group) print '.' end @@ -29,7 +29,7 @@ class Gitlab::Seeder::ProjectLabels @label_per_project.times do label_title = FFaker::Vehicle.model Labels::CreateService - .new(title: label_title, color: "##{Digest::MD5.hexdigest(label_title)[0..5]}") + .new(title: label_title, color: "#{::Gitlab::Color.color_for(label_title)}") .execute(project: @project) print '.' end |