mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
批量fork团队人数处理
This commit is contained in:
@@ -16,7 +16,7 @@ namespace :batch_forked_project do
|
||||
next if user.blank?
|
||||
next if Project.exists?(user_id: user.id, identifier: project.identifier)
|
||||
new_project = Projects::ForkService.new(user, project, nil).call
|
||||
random_num = rand(2..8)
|
||||
random_num = rand(5..20)
|
||||
members = user_logins.sample(random_num)
|
||||
members.each do |m|
|
||||
m_user = User.find_by(login: m)
|
||||
|
||||
Reference in New Issue
Block a user