Skip to content

Warn on merge requests to project with more permissive visibility

What does this MR do and why?

Warn on merge requests to project with more permissive visibility

Add a warning when creating a merge request from a souce project with more restrictive repository access levels than the target project

Contributes to: #415019 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
415019_before 415019_after

How to set up and validate locally

  1. Create a public project
  2. Fork the project
  3. Set repository access level to private (Settings -> General -> Expand Visibility, project features, permissions -> Set repository to Only Project Members)
  4. Try to create a merge request from the fork to the original project and see that there is a warning

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 #415019 (closed)

Edited by Jerry Seto

Merge request reports