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
path: root/lib
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-06-06 18:19:03 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-06-06 18:19:03 +0300
commit7c072c76fc05f7db51e7d7ba6cb0fad2850ecf85 (patch)
treed3f538001ca7fcf6a91376754444a756276f432d /lib
parentac4e3e8cf016f2c2b3dcf3997673310a5df658a9 (diff)
Fix importer for GitHub comments on diff
Fix comments on diff after LegacyDiffNote was extracted from Note
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/github_import/comment_formatter.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/github_import/comment_formatter.rb b/lib/gitlab/github_import/comment_formatter.rb
index 7d679eaec6a..2c1b94ef2cd 100644
--- a/lib/gitlab/github_import/comment_formatter.rb
+++ b/lib/gitlab/github_import/comment_formatter.rb
@@ -8,6 +8,7 @@ module Gitlab
commit_id: raw_data.commit_id,
line_code: line_code,
author_id: author_id,
+ type: type,
created_at: raw_data.created_at,
updated_at: raw_data.updated_at
}
@@ -53,6 +54,10 @@ module Gitlab
def note
formatter.author_line(author) + body
end
+
+ def type
+ 'LegacyDiffNote' if on_diff?
+ end
end
end
end