Commit f98e9028 authored by Kamil Trzciński's avatar Kamil Trzciński

Make bridge/child pipelines clickable

This allows to easily navigate from parent pipeline
to a downstream triggered pipeline that is triggered
by a bridge job.
parent 1a094176
......@@ -81,6 +81,10 @@ module Ci
sourced_pipelines.exists?
end
def first_downstream_pipeline
sourced_pipelines.first
end
def downstream_pipeline_params
return child_params if triggers_child_pipeline?
return cross_project_params if downstream_project.present?
......
---
title: Make bridge/child pipelines clickable
merge_request:
author:
type: added
......@@ -10,14 +10,18 @@ module Gitlab
end
def has_details?
false
can?(user, :read_pipeline, subject.first_downstream_pipeline)
end
def has_action?
false
def details_path
return unless subject.first_downstream_pipeline
pipeline = subject.first_downstream_pipeline
project_pipeline_path(pipeline.project, pipeline)
end
def details_path
def has_action?
false
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment