Use LabelsFinder on Google Code importer

This commit is contained in:
Douglas Barbosa Alexandre 2016-10-19 17:27:58 -02:00
parent 1d8b74fee3
commit 97762a5858
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ module Gitlab
state: raw_issue['state'] == 'closed' ? 'closed' : 'opened'
)
issue.update_attribute(:label_ids, project.labels.where(title: labels).pluck(:id))
issue_labels = ::LabelsFinder.new(project.owner, project_id: project.id, title: labels).execute
issue.update_attribute(:label_ids, issue_labels.pluck(:id))
import_issue_comments(issue, comments)
end