summaryrefslogtreecommitdiff
path: root/lib/gitlab/google_code_import/importer.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-05-06 17:11:36 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-05-06 17:11:36 +0000
commitcc01aa4fd59ed0401d4c9e1526e3ac6ddd866e53 (patch)
treef926b1b7fcb26527bb55940fda2a017314fd3c01 /lib/gitlab/google_code_import/importer.rb
parenteb7bdeb5c8619b61181a9348c7aa94a2be1615bb (diff)
parent2e6201b13197d03eafecd18d967ba7d55f664e19 (diff)
downloadgitlab-ce-enable-auto-cancelling-by-default.tar.gz
Merge branch 'master' into 'enable-auto-cancelling-by-default'enable-auto-cancelling-by-default
# Conflicts: # spec/workers/post_receive_spec.rb
Diffstat (limited to 'lib/gitlab/google_code_import/importer.rb')
-rw-r--r--lib/gitlab/google_code_import/importer.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/gitlab/google_code_import/importer.rb b/lib/gitlab/google_code_import/importer.rb
index 5ca3e6a95ca..1b43440673c 100644
--- a/lib/gitlab/google_code_import/importer.rb
+++ b/lib/gitlab/google_code_import/importer.rb
@@ -108,13 +108,13 @@ module Gitlab
end
issue = Issue.create!(
- iid: raw_issue['id'],
- project_id: project.id,
- title: raw_issue['title'],
- description: body,
- author_id: project.creator_id,
- assignee_id: assignee_id,
- state: raw_issue['state'] == 'closed' ? 'closed' : 'opened'
+ iid: raw_issue['id'],
+ project_id: project.id,
+ title: raw_issue['title'],
+ description: body,
+ author_id: project.creator_id,
+ assignee_ids: [assignee_id],
+ state: raw_issue['state'] == 'closed' ? 'closed' : 'opened'
)
issue_labels = ::LabelsFinder.new(nil, project_id: project.id, title: labels).execute(skip_authorization: true)