daiao 5 years ago
parent eea731e218
commit 92f675385c

@ -14,7 +14,7 @@ namespace :shixun_sync do
username = shixun.owner.try(:login)
# new_repo_name = "#{username.try(:strip)}/#{shixun.try(:identifier)}#{ Time.now.strftime("%Y%m%d%H%M%S")}"
# GitService.fork_repository(repo_path: "#{shixun.try(:repo_name)}.git", fork_repository_path: (new_repo_name + ".git"))
puts "#############{username}"
project_fork(shixun, "#{shixun.try(:repo_name)}.git", username)
end
end

Loading…
Cancel
Save