Skip to content
Snippets Groups Projects
Commit fe9a372c authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Fix import issues method

parent 785459d1
No related branches found
No related tags found
No related merge requests found
Loading
@@ -79,13 +79,13 @@ module Gitlab
Loading
@@ -79,13 +79,13 @@ module Gitlab
created_at: issue.created_at, created_at: issue.created_at,
updated_at: issue.updated_at updated_at: issue.updated_at
) )
gitlab_issue.labels << @labels[label_name]
import_issue_comments(issue, gitlab_issue) if gitlab_issue.persisted?
rescue StandardError => e rescue StandardError => e
errors << { type: :issue, iid: issue.iid, errors: e.message } errors << { type: :issue, iid: issue.iid, errors: e.message }
end end
gitlab_issue.labels << @labels[label_name]
import_issue_comments(issue, gitlab_issue) if gitlab_issue.persisted?
end end
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment