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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/legacy_github_import/comment_formatter.rb')
-rw-r--r--lib/gitlab/legacy_github_import/comment_formatter.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/gitlab/legacy_github_import/comment_formatter.rb b/lib/gitlab/legacy_github_import/comment_formatter.rb
index d83cc4f6b3c..ffd9da604ca 100644
--- a/lib/gitlab/legacy_github_import/comment_formatter.rb
+++ b/lib/gitlab/legacy_github_import/comment_formatter.rb
@@ -9,19 +9,19 @@ module Gitlab
{
project: project,
note: note,
- commit_id: raw_data.commit_id,
+ 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
+ created_at: raw_data[:created_at],
+ updated_at: raw_data[:updated_at]
}
end
private
def author
- @author ||= UserFormatter.new(client, raw_data.user)
+ @author ||= UserFormatter.new(client, raw_data[:user])
end
def author_id
@@ -29,7 +29,7 @@ module Gitlab
end
def body
- raw_data.body || ""
+ raw_data[:body] || ""
end
def line_code
@@ -48,11 +48,11 @@ module Gitlab
end
def diff_hunk
- raw_data.diff_hunk
+ raw_data[:diff_hunk]
end
def file_path
- raw_data.path
+ raw_data[:path]
end
def note