debian-mirror-gitlab/app/serializers/import/bitbucket_provider_repo_entity.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
353 B
Ruby
Raw Normal View History

2020-06-23 00:09:42 +05:30
# 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