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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/github_import/importer/pull_requests/review_requests_importer.rb')
-rw-r--r--lib/gitlab/github_import/importer/pull_requests/review_requests_importer.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gitlab/github_import/importer/pull_requests/review_requests_importer.rb b/lib/gitlab/github_import/importer/pull_requests/review_requests_importer.rb
index 0a92aee801d..7f78df615a2 100644
--- a/lib/gitlab/github_import/importer/pull_requests/review_requests_importer.rb
+++ b/lib/gitlab/github_import/importer/pull_requests/review_requests_importer.rb
@@ -19,6 +19,9 @@ module Gitlab
review_requests = client.pull_request_review_requests(repo, merge_request.iid)
review_requests[:merge_request_id] = merge_request.id
review_requests[:merge_request_iid] = merge_request.iid
+
+ Gitlab::GithubImport::ObjectCounter.increment(project, object_type, :fetched)
+
yield review_requests
mark_merge_request_imported(merge_request)
@@ -42,6 +45,10 @@ module Gitlab
:pull_request_review_requests
end
+ def object_type
+ :pull_request_review_request
+ end
+
# rubocop:disable CodeReuse/ActiveRecord
def merge_request_collection
project.merge_requests