# We use a class method here instead of a constant, allowing EE to redefine
# the returned `Hash` more easily.
...
...
@@ -32,6 +33,58 @@ module Ci
"Pipeline is redundant and is auto-canceled by Pipeline ##{auto_canceled_by_id}"
end
end
defref_text
ifpipeline.detached_merge_request_pipeline?
_("for %{link_to_merge_request} with %{link_to_merge_request_source_branch}").html_safe%{link_to_merge_request: link_to_merge_request,link_to_merge_request_source_branch: link_to_merge_request_source_branch}
elsifpipeline.merge_request_pipeline?
_("for %{link_to_merge_request} with %{link_to_merge_request_source_branch} into %{link_to_merge_request_target_branch}").html_safe%{link_to_merge_request: link_to_merge_request,link_to_merge_request_source_branch: link_to_merge_request_source_branch,link_to_merge_request_target_branch: link_to_merge_request_target_branch}