Import GitHub Gists as GitLab Snippets

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

Allow the user to migrate their personal GitHub Gists into GitLab Snippets. If a GitHub Gist contains more than 10 files, provide an option to migrate these into a repository.

Iteration plan

  1. 👣 API to import gist with one file to a project or user's namespace
  2. 👣 Allow importing all the user's Gists with up to 10 files into Snippets.
  3. 👣 Allow the user to pick and choose which Gists to migrate.
  4. 👣 Allow the user to migrate any Gists with more than 10 files into a snippets folder in the repo of their choice.
  5. 👣 Enhance GitLab Snippets to support more than 10 files. (not considering this at this time)
  6. 👣 Instrument the ability to count how many (% share) imports contain snippets for 11+ files, so that we can monitor this in case that the trend changes.

Note

There is a current limit of 10 files for GitLab Snippets.

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by Itzik Gan Baruch