debian-mirror-gitlab/app/serializers/import/bitbucket_provider_repo_entity.rb
2020-06-23 00:09:42 +05:30

15 lines
353 B
Ruby

# frozen_string_literal: true
class Import::BitbucketProviderRepoEntity < Import::BaseProviderRepoEntity
expose :id, override: true do |repo|
repo.full_name
end
expose :sanitized_name, override: true do |repo|
repo.name.gsub(/[^\s\w.-]/, '')
end
expose :provider_link, override: true do |repo, options|
repo.clone_url
end
end