The repository appears in GitLab, but a release attachment still points to GitHub. A reviewer has unexpected access, and a merge can proceed without the status check the team expected. The Git transfer succeeded. The engineering workflow still needs acceptance tests before anyone changes the primary remote or retires the source.
A GitHub to GitLab migration should have separate checks for repository data, collaboration history and operating controls. Use the supported importer for project data. Keep a migration manifest that records the source repository, destination namespace, selected options and unresolved exceptions. The manifest and cutover gates below are recommended engineering practices.
Define the destination before authorizing the import
GitLab's GitHub importer supports projects from GitHub.com and GitHub Enterprise. It does not migrate GitHub organizations or groups. Decide the GitLab group structure and repository ownership separately. The importer requires access to the source project and the Maintainer or Owner role for the destination group.
The GitHub import source must be enabled. GitLab.com enables it by default, while other installations may require administrator configuration. Also check whether the source organization restricts third-party application access. A visible repository in one browser session does not prove the importer has the required authorization.
The UI imports from github.com. For a self-hosted GitHub Enterprise Server domain, use the supported import API route instead. Keep source and destination credentials in approved secret storage. Record who owns the authorization and its cleanup without putting token values into the migration manifest or logs.
Inventory the data and select import options
The importer supports Git repository data, branches, issues, pull requests, labels, milestones, wiki pages and release note content. It also supports review-related material such as pull request reviews, comments, assigned reviewers and review suggestions. Inventory representative examples so the destination can be tested against actual work rather than an assumed feature checklist.
| Area | Import consideration | Acceptance evidence |
|---|---|---|
| Repository | Branches and Git history | Compare expected references and commit identities |
| Reviews | Pull requests, discussions and review data | Open representative active and completed reviews |
| Attachments | Optional Markdown attachment import | Open imported files without relying on source access |
| Access | Collaborator import and role mapping | Test allowed and denied operations |
| Merge controls | Supported branch rule mappings | Attempt representative blocked and permitted merges |
Markdown attachments are not imported by default. Select Import Markdown attachments if they are in scope. Without that import, source attachment links can break when the originals are removed from GitHub. Inspect issue descriptions, comments, pull request descriptions and release notes as distinct attachment locations.
Import collaborators is selected by default. Review it deliberately because imported members can consume seats and receive elevated permissions. Only direct collaborators are imported, not outside collaborators. Importing collaborators also requires an appropriate source role. Do not treat the selected checkbox as proof that every expected person will appear.
Review identity and permission mappings separately
The documented role mapping assigns GitHub Read to GitLab Guest, Triage to Reporter, Write to Developer, Maintain to Maintainer and Admin to Owner. Those labels are not an acceptance test. Confirm the resulting abilities using the destination's actual project and group configuration.
GitHub Enterprise Cloud custom repository roles are not supported by this importer and cause partially completed imports. Put such roles on the exception list before starting. Decide who should receive access manually, and have the destination owner review the result. Avoid broad temporary grants simply to clear a migration warning.
Contribution attribution and membership are different concerns. The importer uses post-migration contribution mapping. Review the mapping workflow for the deployed GitLab version and destination namespace, then sample authors, assignees and reviewers. A readable author's name does not establish that the correct person has the correct access.
Test branch rules and the delivery workflow
Supported GitHub branch protections map to GitLab branch rules or project-wide settings. For example, conversation resolution on the default branch maps to the All threads must be resolved project setting. Required pull requests map to the No one option for Allowed to push and merge. Review the resulting configuration in the destination.
The GitHub Require status checks to pass before merging rule is not imported. Treat required build and deployment checks as explicit acceptance work. List each control the team relies on, its destination implementation and the test that proves it blocks an unsafe merge. Do not approve cutover because a familiar branch name appears protected.
For the surrounding delivery system, inventory pipelines, secrets, runners and integrations as a separate workstream. Do not assume importer coverage for anything absent from the verified data contract. Run approved destination tests and compare the required outputs before changing production deployment ownership.
Inspect partial results and attachment exceptions
Completed imports can be Complete, Partially completed or Failed. Expand Details to see which repository entities failed. Record each exception with an owner and a disposition. A failed attachment can matter even when the repository itself is usable, especially when it contains a release instruction or review evidence.
Known attachment limitations vary by source. GitLab cannot import GitHub Markdown image attachments uploaded to private repositories before May 9, 2023. For GitHub Enterprise Server, GitLab 18.4 and later import only image and video Markdown attachments, not other attachment types. Test the files your team actually needs instead of promising universal asset preservation.
Older pull request comments can also have a different thread structure. Comments created before 2017 are imported as separate threads because of a GitHub API limitation. Sample discussion context and references, not only comment totals. Preserve an approved source reference for exceptions while the team resolves them.
Plan the final switch around both Git and review changes
Repository mirroring can support an interim Git synchronization arrangement, depending on the GitLab tier. It does not synchronize new or updated GitHub pull requests. A moving Git branch and a moving code review therefore need different reconciliation plans.
- Rehearse the import with an agreed source inventory and destination owner.
- Resolve failed entities and document accepted exceptions.
- Define a final change boundary for code, issues and reviews.
- Validate final references, review state, access and delivery controls.
- Switch working remotes and integrations only after acceptance.
- Retain the source under an agreed access and retirement policy.
Re-import creates a new copy with a new name rather than updating the same imported project. Plan the destination and cleanup before retrying. Keep any source retirement decision separate from import completion, with a rollback owner and a clear policy for work created after cutover.
How Remqa helps with repository migrations
Remqa supports code migration work, including surrounding validation and delivery handoffs. A broader migration project can include repository inventories, exception tracking and destination acceptance checks. Bring one repository and the release workflow it supports. Define what must still work before moving the rest.