Draft: Add merge request settings support for group (EE)
This MR completes this issue and this epic at the same time: #372040 (closed) & &8704 (closed)
In order to facilitate the code review, I divided it into two MRs according to CE
EE
:
-
CE
: Add merge request settings support for group (CE) -
EE
: Add merge request settings support for group (EE)
Final goal of these two MRs
Add Merge requests > Merge checks
settings support for group level.
![](/-/project/278964/uploads/4b5775d657c10c32fc4090dead9c6ca2/image.png)
What does this CE-MR do and why?
The changes revolve around these three configuration items:
only_allow_merge_if_pipeline_succeeds
allow_merge_on_skipped_pipeline
only_allow_merge_if_all_discussions_are_resolved
- Backend: Add two methods
actual_xxx
andxxx_locked?
tonamespace_settings
model inEE
- Backend: Add two methods
actual_xxx
andxxx_locked?
toprojects
model inEE
- Frontend: Add a
Merge requests
page on the group settings page, whereMR checks
are included (The main content of MR)
How to set up and validate locally
Feature.enable(:support_group_level_merge_checks_setting)
Edited by Zhiyuan Lu