summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-11 17:31:45 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-13 11:35:38 -0300
commita14ee9bef9050e9d4c4de63eec80e9ff33c7e039 (patch)
treeff57ee481e803c99abaadb95fd621927bcffa8c8
parent4be505bfd177755103d74ca4874086853a32449a (diff)
downloadgitlab-ce-a14ee9bef9050e9d4c4de63eec80e9ff33c7e039.tar.gz
Keeps issue number when importing from Gitlab.com
With these changes we don’t lost the issue references when importing from `GitLab.com`.
-rw-r--r--lib/gitlab/gitlab_import/importer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/gitlab_import/importer.rb b/lib/gitlab/gitlab_import/importer.rb
index 3f76ec97977..e6d31ea04c0 100644
--- a/lib/gitlab/gitlab_import/importer.rb
+++ b/lib/gitlab/gitlab_import/importer.rb
@@ -35,6 +35,7 @@ module Gitlab
end
project.issues.create!(
+ iid: issue["iid"],
description: body,
title: issue["title"],
state: issue["state"],