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 |
---|---|
How to set up and validate locally
- Create a public project
- Fork the project
- Set repository access level to private (
Settings
->General
-> ExpandVisibility, project features, permissions
-> Set repository toOnly Project Members
) - 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #415019 (closed)
Edited by Jerry Seto