Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename gitlab:app:enable_automerge to gitlab:enable_automerge
- Loading branch information
Showing
4 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
namespace :gitlab do | ||
namespace :app do | ||
desc "GITLAB | Enable auto merge" | ||
task :enable_automerge => :environment do | ||
Gitlab::Gitolite.new.enable_automerge | ||
desc "GITLAB | Enable auto merge" | ||
task :enable_automerge => :environment do | ||
Gitlab::Gitolite.new.enable_automerge | ||
|
||
Project.find_each do |project| | ||
if project.repo_exists? && !project.satellite.exists? | ||
puts "Creating satellite for #{project.name}...".green | ||
project.satellite.create | ||
end | ||
Project.find_each do |project| | ||
if project.repo_exists? && !project.satellite.exists? | ||
puts "Creating satellite for #{project.name}...".green | ||
project.satellite.create | ||
end | ||
|
||
puts "Done!".green | ||
end | ||
|
||
puts "Done!".green | ||
end | ||
end |
This file contains 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