diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-06 17:56:47 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-13 09:52:49 +0200 |
commit | 0a80e50492d77d9947f382b3d55cb602fd4ad2f8 (patch) | |
tree | 30b0d010e1646312a858005bfd30aae8b9223fa4 /app | |
parent | a4a3da764ae88c4de95f15f1069df9a43425c029 (diff) | |
download | gitlab-ce-0a80e50492d77d9947f382b3d55cb602fd4ad2f8.tar.gz |
Fix support for external_url for commit statuses
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/build_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/build_entity.rb b/app/serializers/build_entity.rb index 67001f4547d..0fbc3160b1e 100644 --- a/app/serializers/build_entity.rb +++ b/app/serializers/build_entity.rb @@ -5,7 +5,7 @@ class BuildEntity < Grape::Entity expose :name expose :build_path do |build| - path_to(:namespace_project_job, build) + build.external_url || path_to(:namespace_project_job, build) end expose :retry_path, if: -> (*) { retryable? } do |build| |