diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-06-06 18:19:03 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-06-06 18:19:03 +0300 |
commit | 7c072c76fc05f7db51e7d7ba6cb0fad2850ecf85 (patch) | |
tree | d3f538001ca7fcf6a91376754444a756276f432d /lib | |
parent | ac4e3e8cf016f2c2b3dcf3997673310a5df658a9 (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.rb | 5 |
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 |