05b52e0f5e
# Conflicts: # lib/gitlab/github_import/importer.rb
23 lines
428 B
Ruby
23 lines
428 B
Ruby
module Gitlab
|
|
module GithubImport
|
|
class ReleaseFormatter < BaseFormatter
|
|
def attributes
|
|
{
|
|
project: project,
|
|
tag: raw_data.tag_name,
|
|
description: raw_data.body,
|
|
created_at: raw_data.created_at,
|
|
updated_at: raw_data.created_at
|
|
}
|
|
end
|
|
|
|
def klass
|
|
Release
|
|
end
|
|
|
|
def valid?
|
|
!raw_data.draft
|
|
end
|
|
end
|
|
end
|
|
end
|