Skip to content

Show MR pipeline's tab when pipelines are enabled

Payton Burdette requested to merge 329787-pipeline-tab-mr-fix into master

What does this MR do and why?

This MR aims to solve #329787 (closed) where on unique situations a forked repo MR gets stuck in state where no pipelines can be ran on that MR. The workaround is to use the API.

In this MR

  • Show pipelines tab on MR if builds_enabled? for the project
  • Introduce empty state when their are no pipelines
  • Add button to run pipeline

Screenshots or screen recordings

Empty state

Screen_Shot_2022-07-27_at_9.22.48_AM

Alert error if MR pipelines are not configured

Screen_Shot_2022-07-27_at_9.23.06_AM

How to set up and validate locally

To create the actual bug is difficult, since it deals with forked repos where MR pipelines sometimes don't get created. To create a similar scenario a user would end up in you should:

  1. Create project without CI config
  2. Create MR
  3. View pipelines tab

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #329787 (closed)

Edited by Payton Burdette

Merge request reports