GitHub Importer - Import GitHub Release attached files
Release Notes
We continue to improve the GitHub project importer by adding more metadata to the migrated projects. In this milestone we added to the migration attachments that exists in the GitHub Release Notes
Problem to solve
The GitHub importer currently imports the Release notes, but it ignores any attached files on those notes.
Correcting this is currently a manual process that has to be done after the import and could be very time-consuming when the project contains a large number of releases.
Proposed solution
During project import from GitHub, for each Release check if any attached files exist and upload those into GitLab.
- Release descriptions will contain the links we need in order to download missing attachments.
- For each release, we can enqueue a separate worker that will be performing file download/validation/etc.
- After files are migrated, we can update the description by removing all links from the body and adding new ones.
Documentation
-
📖 User doc: https://docs.gitlab.com/ee/user/project/import/github.html -
📖 Developer doc: https://docs.gitlab.com/ee/development/github_importer.html
Edited by Itzik Gan Baruch