Rake task to provider full repo access for gitolite-owner.\n Automerge requires gitlab user be able to push to any repo
This commit is contained in:
parent
3824f9b372
commit
464cd59dff
2 changed files with 38 additions and 0 deletions
9
lib/tasks/gitlab_enable_automerge.rake
Normal file
9
lib/tasks/gitlab_enable_automerge.rake
Normal file
|
@ -0,0 +1,9 @@
|
|||
desc "Give gitlab user full access to every repo"
|
||||
task :gitlab_enable_automerge => :environment do
|
||||
|
||||
Gitlabhq::GitHost.system.new.configure do |git|
|
||||
git.admin_all_repo
|
||||
end
|
||||
|
||||
puts "Done!".green
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue