提交 97762a58 编写于 作者: D Douglas Barbosa Alexandre

Use LabelsFinder on Google Code importer

上级 1d8b74fe
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册