Update merge request widget pipeline block to accommodate post-merge pipelines

What does this MR do?

Updates the merge request widget pipeline block to handle the three cases mentioned in the Merge request widget pipeline block section here: https://gitlab.com/gitlab-org/gitlab-ee/issues/7380#pipeline-list-view. The relevant UI mockups from this issue have been copied below for convenience:

Requirements Mockups
Normal branch pipeline
  • Unchanged
normal_pipeline
Detached merge request pipeline
  • Ref now shows merge request ID/Link before the source branch
prospective-merge-pipeline-failed_copy_6
Merged result merge request pipeline
  • Ref now shows merge request ID/Link before source branch and adds target branch
prospective-merge-pipeline-failed_copy_7

This MR assumes the pipeline API will be updated as described in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25679.

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ee/issues/7380

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25679

Does this MR meet the acceptance criteria?

Edited by Nathan Friend

Merge request reports

Loading