mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
支持用户fork自己的仓库
This commit is contained in:
@@ -15,7 +15,7 @@ namespace :batch_forked_project do
|
||||
user = User.find_by(login: username)
|
||||
next if user.blank?
|
||||
next if Project.exists?(user_id: user.id, identifier: project.identifier)
|
||||
new_project = Projects::ForkService.new(user, project, nil).call
|
||||
new_project = Projects::ForkService.new(user, project, nil, nil, nil).call
|
||||
random_num = rand(5..20)
|
||||
members = user_logins.sample(random_num)
|
||||
members.each do |m|
|
||||
|
||||
Reference in New Issue
Block a user