From 0a80e50492d77d9947f382b3d55cb602fd4ad2f8 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Tue, 6 Jun 2017 17:56:47 +0200 Subject: Fix support for external_url for commit statuses --- app/serializers/build_entity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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| -- cgit v1.2.1