Class: Gitlab::GithubImport::Importer::PullRequests::MergedByImporter
- Inherits:
-
Object
- Object
- Gitlab::GithubImport::Importer::PullRequests::MergedByImporter
- Defined in:
- lib/gitlab/github_import/importer/pull_requests/merged_by_importer.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(pull_request, project, client) ⇒ MergedByImporter
constructor
pull_request - An instance of ‘Gitlab::GithubImport::Representation::PullRequest` project - An instance of `Project` client - An instance of `Gitlab::GithubImport::Client`.
Constructor Details
#initialize(pull_request, project, client) ⇒ MergedByImporter
pull_request - An instance of
`Gitlab::GithubImport::Representation::PullRequest`
project - An instance of ‘Project` client - An instance of `Gitlab::GithubImport::Client`
12 13 14 15 16 |
# File 'lib/gitlab/github_import/importer/pull_requests/merged_by_importer.rb', line 12 def initialize(pull_request, project, client) @pull_request = pull_request @project = project @client = client end |
Instance Method Details
#execute ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/gitlab/github_import/importer/pull_requests/merged_by_importer.rb', line 18 def execute user_finder = GithubImport::UserFinder.new(project, client) gitlab_user_id = user_finder.user_id_for(pull_request.merged_by) metrics_upsert(gitlab_user_id) add_note! end |