Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-17 00:11:48 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-17 00:11:48 +0300
commitfe9a372c0b64b47117fc0a64dbdfb514f757ee6e (patch)
tree55380e0a5f1142c83ab2b870e3268357311a732f /lib/gitlab
parent785459d1617887ad8c3cd530c6cd79c33336fc41 (diff)
Fix import issues method
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/bitbucket_import/importer.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/bitbucket_import/importer.rb b/lib/gitlab/bitbucket_import/importer.rb
index d5287c69e6e..7d2f92d577a 100644
--- a/lib/gitlab/bitbucket_import/importer.rb
+++ b/lib/gitlab/bitbucket_import/importer.rb
@@ -79,13 +79,13 @@ module Gitlab
created_at: issue.created_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
errors << { type: :issue, iid: issue.iid, errors: e.message }
end
-
- gitlab_issue.labels << @labels[label_name]
-
- import_issue_comments(issue, gitlab_issue) if gitlab_issue.persisted?
end
end