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

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
15
# File 'lib/gitlab/github_import/importer/events/changed_reviewer.rb', line 8

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

  note_body = parse_body(issue_event, requested_reviewer_id)

  create_note(issue_event, note_body, review_requester_id)
end