Skip to content

Mark CI Pipelines of MRs between protected branches as protected

Why this MR ?

What does this MR do ?

  • We add a new project setting protect_merge_request_pipelines that controls this feature. Disabled for existing projects to prevent breaking of existing pipelines and enabled for newly created projects
  • If the protect_merge_request_pipelines setting is enabled and both source and target branch of a Merge Request are protected, then we mark the Merge Request pipeline as protected
  • Additionally, if the MR if from a forked repository, we DO NOT mark the pipeline as protected
  • For newly created projects we set this setting to true by default
  • All changes are behind a derisk Feature Flag
  • Feature Flag rollout and cleanup issue

References

Screenshots

Before After
Screenshot_2025-04-15_at_15.53.15 Screenshot_2025-04-15_at_16.00.53
Screenshot_2025-05-14_at_15.42.05 Screenshot_2025-05-14_at_15.43.39
Screenshot_2025-05-14_at_15.00.14 Screenshot_2025-05-15_at_18.27.34

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jayakrishnan Mallissery

Merge request reports

Loading