Skip to content
  • Yorick Peterse's avatar
    Rewrite the GitHub importer from scratch · 86c05c535691
    Yorick Peterse authored
    Prior to this MR there were two GitHub related importers:
    
    * Github::Import: the main importer used for GitHub projects
    * Gitlab::GithubImport: importer that's somewhat confusingly used for
      importing Gitea projects (apparently they have a compatible API)
    
    This MR renames the Gitea importer to Gitlab::LegacyGithubImport and
    introduces a new GitHub importer in the Gitlab::GithubImport namespace.
    This new GitHub importer uses Sidekiq for importing multiple resources
    in parallel, though it also has the ability to import data sequentially
    should this be necessary.
    
    The new code is spread across the following directories:
    
    * lib/gitlab/github_import: this directory contains most of the importer
      code such as the classes used for importing resources.
    * app/workers/gitlab/github_import: this directory contains the Sidekiq
      workers, most of which simply use the code from the directory above.
    * app/workers/concerns/gitlab/github_import: this directory provides a
      few mo...
    86c05c535691