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

Methods included from Import::PlaceholderReferences::Pusher

#map_to_personal_namespace_owner?, #push_reference, #push_reference_with_composite_key, #push_references_by_ids, #user_mapping_enabled?

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

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

  note_body = parse_body(issue_event)

  created_note = create_note(issue_event, note_body, author_id)

  push_reference(project, created_note, :author_id, issue_event[:actor]&.id)
end