Last active
January 11, 2019 18:43
-
-
Save sadok-f/6e3a77028fbdd6f4be188cb02d8958fe to your computer and use it in GitHub Desktop.
Gitlab: Disable Merge requests feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Edit etc/gitlab/gitlab.rb | |
| gitlab_rails['gitlab_default_projects_features_merge_requests'] = false | |
| # Restart gitlab: | |
| gitlab-ctl reconfigure | |
| gitlab-ctl restart | |
| # Update current projects' settings: | |
| gitlab-rails console production | |
| --> | |
| for pf in ProjectFeature.where.not(merge_requests_access_level: 0) do | |
| pf.merge_requests_access_level= 0 | |
| pf.save! | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment