diff options
Diffstat (limited to 'lib/bitbucket_server/representation/repo.rb')
-rw-r--r-- | lib/bitbucket_server/representation/repo.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bitbucket_server/representation/repo.rb b/lib/bitbucket_server/representation/repo.rb index ba90a15f11f..9c518341e66 100644 --- a/lib/bitbucket_server/representation/repo.rb +++ b/lib/bitbucket_server/representation/repo.rb @@ -16,6 +16,8 @@ module BitbucketServer end def browse_url + # The JSON reponse contains an array of 1 element. Not sure if there + # are cases where multiple links would be provided. raw.dig('links', 'self').first.fetch('href') end |