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:
authorValery Sizov <valery@gitlab.com>2016-12-09 20:40:22 +0300
committerValery Sizov <valery@gitlab.com>2016-12-09 20:40:22 +0300
commitff2193a3db558214fab90bb644be6967a03176a0 (patch)
tree86f07dc8988fb15f611b75154a616ee76e0d5051 /lib/gitlab/bitbucket_import
parentcc30a9f7ed436fd906c1e24a195414f2f84ee61c (diff)
Fix specs
Diffstat (limited to 'lib/gitlab/bitbucket_import')
-rw-r--r--lib/gitlab/bitbucket_import/importer.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/bitbucket_import/importer.rb b/lib/gitlab/bitbucket_import/importer.rb
index e00a90da980..a0a17333185 100644
--- a/lib/gitlab/bitbucket_import/importer.rb
+++ b/lib/gitlab/bitbucket_import/importer.rb
@@ -58,7 +58,7 @@ module Gitlab
updated_at: issue.updated_at
)
- assign_label(issue, label_name)
+ issue.labels << @labels[label_name]
if issue.persisted?
client.issue_comments(repo, issue.iid).each do |comment|
@@ -92,10 +92,6 @@ module Gitlab
end
end
- def assign_label(issue, label_name)
- issue.labels << @labels[label_name]
- end
-
def import_pull_requests
pull_requests = client.pull_requests(repo)