-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Description
Description
Currently trying to migrate a GitHub repository to my self-hosted Gitea instance (running in docker) but it fails to create all the comments for the issues.
After looking at the code, I think it's caused by how the CreateComments
function in services/migrations/gitea_uploader.go
behaves. When fetching the associated index, it assumes the index of the issue must match the IssueIndex, which for GitHub it doesn't since issues numbers start from 1
.
What I think might fix this, is by searching in the g.issues
list/array for the issue where the index/number matches instead of assuming based off the list/array item index.
I might be wrong about this as well, that it could also be because I'm migrating a private repository (that only contains one file in the repo, and a bunch of issues), and that my understanding of golang is very minimal.
Gitea Version
1.23.8
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://gist.github.com/ktwrd/678748ae33eb91a0f17dda1645e4a9b1
Screenshots
(my instance screenshot)
(demo instance screenshot)
Git Version
2.47.2
Operating System
Docker 27.5.1 on Rocky Linux 9.5 (amd64)
How are you running Gitea?
I'm using the official docker image docker.gitea.com/gitea:1.23.8
running on Rocky Linux 9.5 with all the default settings that are prompted on the first-launch wizard.
Database
SQLite