API to import gist with one file to a project or user's namespace

Problem to solve

We can import repos from GitHub, but for a complete migration away from GitHub, we would need to have a way to import GitHub Gists, too.

With the release of Snippets with multiple Files, it is now possible to migrate GitLab Gists (up to 10 files) directly into Snippets.

Proposal

This is MVC , we will create API that import gists with one file only, to the user's namespace or a project.

If the gist is public in GH, make it public in GitLab, if it is secret in GH, make it private on GitLab.

Edited by Itzik Gan Baruch