Skip to content

fix(import-mr): keep open PRs on their GitLab base instead of the latest merge - #1

Open
Maxcastel wants to merge 1 commit into
mainfrom
fix/open-pr-base-after-merge
Open

Maxcastel wants to merge 1 commit into
mainfrom
fix/open-pr-base-after-merge

Conversation

@Maxcastel

@Maxcastel Maxcastel commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Problem

When an MR is merged on GitLab, the MRs still open on an older main conflict with it. Once migrated, their pull requests had no conflict on GitHub.

They were replayed on top of the latest main instead of the commit they started from. Their commits kept their original files, so they reverted everything merged since: each pull request showed every change of the merged MR.

Fix

Each open MR is now replayed on the copy of the commit it started from, so its pull request shows the same commits, files and conflicts as on GitLab. This also covers MRs opened before every merged MR and MRs created from a branch merged since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant