GitHub Importer - Migrate merge request edited events
Problem to solve
When migrating projects from GitHub to GitLab, the pull requests are imported as merge requests, 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 merge request, check if any events of type edited exist for that merge request and create corresponding events in GitLab.
Screenshots
These images illustrate the expected result in GitLab for each event in GitHub:
| GitHub |
|
GitLab |
|---|---|---|
![]() |
|
![]() |
👣 This issue
This issue is to migrate the following events:
-
edited- This event is triggered when a merge request title is edited.
Iteration plan
-
👣 GitHub Importer - Migrate merge request un/assigned events -
👣 GitHub Importer - Migrate merge request review_requested/removed events -
👣 GitHub Importer - Migrate merge request closed/reopened events -
👣 GitHub Importer - Migrate merge request un/labeled events -
👣 GitHub Importer - Migrate merge request edited events - THIS ISSUE
Technical details
The GitHub event objects of type:PullRequestEvent will have the payload.action fields set to one of these values:
edited
Documentation
Following documentation should be updated with the changes implemented in this issue:
-
📖 User doc: https://docs.gitlab.com/ee/user/project/import/github.html -
📖 Developer doc: https://docs.gitlab.com/ee/development/github_importer.html

