summaryrefslogtreecommitdiff
path: root/lib/gitlab/fogbugz_import/importer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/fogbugz_import/importer.rb')
-rw-r--r--lib/gitlab/fogbugz_import/importer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/fogbugz_import/importer.rb b/lib/gitlab/fogbugz_import/importer.rb
index 9e926e2681a..f154ee689cf 100644
--- a/lib/gitlab/fogbugz_import/importer.rb
+++ b/lib/gitlab/fogbugz_import/importer.rb
@@ -74,8 +74,8 @@ module Gitlab
end
def create_label(name)
- color = nice_label_color(name)
- Label.create!(project_id: project.id, title: name, color: color)
+ params = { title: name, color: nice_label_color(name) }
+ ::Labels::CreateService.new(project.owner, project, params).execute
end
def user_info(person_id)