Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fork_registration_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fffa8b3a65913c12759c76c604ee8d10967f7c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class ForkRegistrationWorker
  include Sidekiq::Worker

  sidekiq_options queue: :default

  def perform(from_project_id, to_project_id, private_token)
    from_project = Project.find(from_project_id)
    to_project = Project.find(to_project_id)

    from_project.gitlab_ci_service.fork_registration(to_project, private_token)
  end
end