GitHub Importer - Migrate issue events
Problem to solve
When migrating projects from GitHub to GitLab, the issues are imported including any comments. However, any history/events are not migrated over. This means that, after the migration, the users would not be able to see who added/removed labels, milestones, assignees, etc.
For some users this is a dealbreaker that would prevent them from migrating to GitLab.
Proposed solution
During project import from GitHub, for each imported issue, check if any of the identified events exist and import them into GitLab.
Events list
GitHub |
|
GitLab |
---|---|---|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Iterations
-
👣 GitHub Importer - Migrate issue closed/reopened events -
👣 GitHub Importer - Migrate issue un/labeled events -
👣 GitHub Importer - Migrate issue de/milestoned events -
👣 GitHub Importer - Migrate issue cross-referenced events -
👣 GitHub Importer - Migrate issue un/assigned events -
👣 GitHub Importer - Migrate issue renamed events
Technical details
- we can use
GET
/repos/{owner}/{repo}/issues/{issue_number}/events to get a list of events for an issue
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 Haris Delalić