Skip to content

Instantly share code, notes, and snippets.

@sadok-f
Last active January 11, 2019 18:43
Show Gist options
  • Select an option

  • Save sadok-f/6e3a77028fbdd6f4be188cb02d8958fe to your computer and use it in GitHub Desktop.

Select an option

Save sadok-f/6e3a77028fbdd6f4be188cb02d8958fe to your computer and use it in GitHub Desktop.
Gitlab: Disable Merge requests feature
# 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