Class: Gitlab::GithubImport::Importer::Events::ChangedReviewer

Inherits:
BaseImporter
  • Object
show all
Defined in:
lib/gitlab/github_import/importer/events/changed_reviewer.rb

Instance Method Summary collapse

Methods inherited from BaseImporter

#initialize

Methods included from PushPlaceholderReferences

#push_refs_with_ids, #push_with_composite_key, #push_with_record

Constructor Details

This class inherits a constructor from Gitlab::GithubImport::Importer::Events::BaseImporter

Instance Method Details

#execute(issue_event) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/gitlab/github_import/importer/events/changed_reviewer.rb', line 8

def execute(issue_event)
  review_requester_id = author_id(issue_event, author_key: :review_requester)

  note_body = parse_body(issue_event)

  create_note(issue_event, note_body, review_requester_id)
end