Class: Gitlab::GithubImport::Importer::PullRequests::ReviewRequestImporter

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/github_import/importer/pull_requests/review_request_importer.rb

Instance Method Summary collapse

Constructor Details

#initialize(review_request, project, client) ⇒ ReviewRequestImporter

Returns a new instance of ReviewRequestImporter.



8
9
10
11
# File 'lib/gitlab/github_import/importer/pull_requests/review_request_importer.rb', line 8

def initialize(review_request, project, client)
  @review_request = review_request
  @user_finder = UserFinder.new(project, client)
end

Instance Method Details

#executeObject



13
14
15
# File 'lib/gitlab/github_import/importer/pull_requests/review_request_importer.rb', line 13

def execute
  MergeRequestReviewer.bulk_insert!(build_reviewers)
end