Class: Gitlab::GithubImport::Importer::Events::ChangedMilestone

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

Constant Summary collapse

DEFAULT_STATE =

GitHub API doesn’t provide the historical state of an issue for de/milestoned issue events. So we’ll assign the default state to those events that are imported from GitHub.

Issue.available_states[:opened]

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



13
14
15
# File 'lib/gitlab/github_import/importer/events/changed_milestone.rb', line 13

def execute(issue_event)
  create_event(issue_event)
end