diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-15 18:14:41 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-18 12:15:50 -0300 |
commit | d13bba44f0de0aa5df00c37b4f743504d187bb03 (patch) | |
tree | c566729ef0fb665ccc224797d8b6ad716ed01d56 /lib | |
parent | 70e6fa31064984c691e283eddf6712bc031e0842 (diff) | |
download | gitlab-ce-d13bba44f0de0aa5df00c37b4f743504d187bb03.tar.gz |
Use GitHub Issue/PR number as iid to keep references
With these changes we don’t lost the issue/pr references when importing
them to GitLab.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/github_import/issue_formatter.rb | 1 | ||||
-rw-r--r-- | lib/gitlab/github_import/pull_request_formatter.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/github_import/issue_formatter.rb b/lib/gitlab/github_import/issue_formatter.rb index 1e3ba44f27c..acb332cb0cb 100644 --- a/lib/gitlab/github_import/issue_formatter.rb +++ b/lib/gitlab/github_import/issue_formatter.rb @@ -3,6 +3,7 @@ module Gitlab class IssueFormatter < BaseFormatter def attributes { + iid: number, project: project, title: raw_data.title, description: description, diff --git a/lib/gitlab/github_import/pull_request_formatter.rb b/lib/gitlab/github_import/pull_request_formatter.rb index 4e507b090e8..5ee8a14624a 100644 --- a/lib/gitlab/github_import/pull_request_formatter.rb +++ b/lib/gitlab/github_import/pull_request_formatter.rb @@ -3,6 +3,7 @@ module Gitlab class PullRequestFormatter < BaseFormatter def attributes { + iid: number, title: raw_data.title, description: description, source_project: source_project, |