Class: Gitlab::GithubImport::Importer::Events::ChangedAssignee

Inherits:
BaseImporter
  • Object
show all
Defined in:
lib/gitlab/github_import/importer/events/changed_assignee.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_assignee.rb', line 8

def execute(issue_event)
  assignee_id = author_id(issue_event, author_key: :assignee)
  author_id = author_id(issue_event, author_key: :actor)

  note_body = parse_body(issue_event, assignee_id)

  create_note(issue_event, note_body, author_id)
end