Gitlab migration: Migration fails when there are both issues and MRs in the repo #11159

Closed
opened 2025-11-02 09:29:21 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @luna-duclos on GitHub (Jul 4, 2023).

Description

When migrating a gitlab repo to gitea, the migration will almost always fail if both MRs and issues are being migrated.
This is because gitlab assigns a seperate number sequence for each of them, so there is an issue 1, an MR 1, issue 2, MR 2, etc.

This doesn't work with gitea, which has a single number sequence for both and doesn't want them to overlap.

I sadly trashed my logs so I do not have them, my apologies :(
I will reproduce it on a test instance if necessary and provide them, please let me know if wanted.

Gitea Version

1.9.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

gitea was being ran using the gitea helm charts found at https://gitea.com/gitea/helm-chart/

Database

PostgreSQL

Originally created by @luna-duclos on GitHub (Jul 4, 2023). ### Description When migrating a gitlab repo to gitea, the migration will almost always fail if both MRs and issues are being migrated. This is because gitlab assigns a seperate number sequence for each of them, so there is an issue 1, an MR 1, issue 2, MR 2, etc. This doesn't work with gitea, which has a single number sequence for both and doesn't want them to overlap. I sadly trashed my logs so I do not have them, my apologies :( I will reproduce it on a test instance if necessary and provide them, please let me know if wanted. ### Gitea Version 1.9.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? gitea was being ran using the gitea helm charts found at https://gitea.com/gitea/helm-chart/ ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 09:29:21 -06:00
Author
Owner

@hramrach commented on GitHub (Nov 1, 2023):

This is #13884

@hramrach commented on GitHub (Nov 1, 2023): This is #13884
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11159