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/release_formatter.rb')
-rw-r--r--lib/gitlab/legacy_github_import/release_formatter.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/gitlab/legacy_github_import/release_formatter.rb b/lib/gitlab/legacy_github_import/release_formatter.rb
index 0fb7e376f5b..2a54a15429b 100644
--- a/lib/gitlab/legacy_github_import/release_formatter.rb
+++ b/lib/gitlab/legacy_github_import/release_formatter.rb
@@ -6,13 +6,13 @@ module Gitlab
def attributes
{
project: project,
- tag: raw_data.tag_name,
- name: raw_data.name,
- description: raw_data.body,
- created_at: raw_data.created_at,
+ tag: raw_data[:tag_name],
+ name: raw_data[:name],
+ description: raw_data[:body],
+ created_at: raw_data[:created_at],
# Draft releases will have a null published_at
- released_at: raw_data.published_at || Time.current,
- updated_at: raw_data.created_at
+ released_at: raw_data[:published_at] || Time.current,
+ updated_at: raw_data[:created_at]
}
end
@@ -21,11 +21,11 @@ module Gitlab
end
def find_condition
- { tag: raw_data.tag_name }
+ { tag: raw_data[:tag_name] }
end
def valid?
- !raw_data.draft && raw_data.tag_name.present?
+ !raw_data[:draft] && raw_data[:tag_name].present?
end
end
end