diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-17 03:10:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-17 03:10:02 +0300 |
commit | d17008f99ed08e7c231b7e8e65cba1be51e2e747 (patch) | |
tree | bd3089c50b6b05b9921d1ea48b0de1382cde0655 /app | |
parent | f5617fbd782cf1465572a524a8885f3eccf9ca1c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/import/bitbucket_server_provider_repo_entity.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/import/bitbucket_server_provider_repo_entity.rb b/app/serializers/import/bitbucket_server_provider_repo_entity.rb index d818cac46cd..7c619cf4ebe 100644 --- a/app/serializers/import/bitbucket_server_provider_repo_entity.rb +++ b/app/serializers/import/bitbucket_server_provider_repo_entity.rb @@ -1,6 +1,10 @@ # frozen_string_literal: true class Import::BitbucketServerProviderRepoEntity < Import::BitbucketProviderRepoEntity + expose :id, override: true do |repo| + "#{repo.project_key}/#{repo.slug}" + end + expose :provider_link, override: true do |repo, options| repo.browse_url end |