diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-18 05:27:10 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 19:58:27 +0300 |
commit | d009d38ed6ab5459f596194ce808c304e6379161 (patch) | |
tree | 4e48d7971255807c008d7c5ff1ade48a92b192af /lib/gitlab/fogbugz_import | |
parent | 6c189dcc8e76d5ddb348832500b003bf0d1b49a6 (diff) |
User Labes::CreateService to create labels
Diffstat (limited to 'lib/gitlab/fogbugz_import')
-rw-r--r-- | lib/gitlab/fogbugz_import/importer.rb | 4 |
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) |