Don't create new namespaces when importing via GitHub import task

What does this MR do and why?

MR contains two commits:

  1. The first one is a small addition related to https://gitlab.com/gitlab-org/gitlab/-/issues/372472 since GitHub import Rake task was still using Sawyer::Resource objects.
  2. The second one is the actual implementation. It solves #390690 (closed)

Screenshots or screen recordings

Import with specifying namespace or group to import a project into that doesn't exist:

unknown_namespace

Import with specifying your own namespace:

own_namespace

How to set up and validate locally

Use our GitHub import Rake task to import repository from GitHub:

  • if you specify namespace or group to import a project into that doesn't exist, you should see the error: Namespace or group to import repository into does not exist.
  • if you specify your own namespace or an existing group that you have permission to import a project into, the import should be started.

MR acceptance checklist

Edited by Tetiana Zavediuk

Merge request reports

Loading
Loading