Pull Request,labels Not Added to Repository When Migrating via API #14185

Closed
opened 2025-11-02 11:05:38 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @VinothKumar-Ganesan on GitHub (Feb 25, 2025).

Description

During the repository migration process using the API, the expected pull requests ,labels were not successfully transferred to the target repository but while using the UI for migration it was added properly

Gitea Version

1.23.4

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

git version 2.48.1.windows.1

Operating System

windows

How are you running Gitea?

docker

Database

PostgreSQL

Originally created by @VinothKumar-Ganesan on GitHub (Feb 25, 2025). ### Description During the repository migration process using the API, the expected pull requests ,labels were not successfully transferred to the target repository but while using the UI for migration it was added properly ### Gitea Version 1.23.4 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version git version 2.48.1.windows.1 ### Operating System windows ### How are you running Gitea? docker ### Database PostgreSQL
GiteaMirror added the type/bugissue/needs-feedback labels 2025-11-02 11:05:38 -06:00
Author
Owner

@lunny commented on GitHub (Feb 26, 2025):

Please give more details, what's your parameter when invoking the API.

@lunny commented on GitHub (Feb 26, 2025): Please give more details, what's your parameter when invoking the API.
Author
Owner

@VinothKumar-Ganesan commented on GitHub (Feb 26, 2025):

i used the following command

curl -X POST "http://localhost:3000/api/v1/repos/migrate" -H "accept: application/json" -H "Authorization: token 343e0d92f65f42c5ca649694da769fb92effd474" -H "Content-Type: application/json" -d "{"auth_token":"","clone_addr":"clone url","description":"Migrated project from GitHub","issues":true,"labels":true,"milestones":true,"private":true,"pull_requests":true,"releases":true,"repo_name":"continue-ai-curl-git","repo_owner":"Sample-Organisation","wiki":false}"

@VinothKumar-Ganesan commented on GitHub (Feb 26, 2025): i used the following command curl -X POST "http://localhost:3000/api/v1/repos/migrate" -H "accept: application/json" -H "Authorization: token 343e0d92f65f42c5ca649694da769fb92effd474" -H "Content-Type: application/json" -d "{\"auth_token\":\"\",\"clone_addr\":\"clone url\",\"description\":\"Migrated project from GitHub\",\"issues\":true,\"labels\":true,\"milestones\":true,\"private\":true,\"pull_requests\":true,\"releases\":true,\"repo_name\":\"continue-ai-curl-git\",\"repo_owner\":\"Sample-Organisation\",\"wiki\":false}"
Author
Owner

@VinothKumar-Ganesan commented on GitHub (Feb 27, 2025):

Also facing this issue while migrating from ui

2025/02/27 10:54:56 ...ices/task/migrate.go:60:func1() [E] runMigrateTask[5] by DoerID[1] to RepoID[5] for OwnerID[2] failed: migration failed: clone error: exit status 128 - error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly: CANCEL (err 8)
error: 4749 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
2025/02/27 10:54:56 ...ervices/task/task.go:53:handler() [E] Run task failed: migration failed: clone error: exit status 128 - error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly: CANCEL (err 8)
error: 4749 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Image

@VinothKumar-Ganesan commented on GitHub (Feb 27, 2025): Also facing this issue while migrating from ui 2025/02/27 10:54:56 ...ices/task/migrate.go:60:func1() [E] runMigrateTask[5] by DoerID[1] to RepoID[5] for OwnerID[2] failed: migration failed: clone error: exit status 128 - error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly: CANCEL (err 8) error: 4749 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output 2025/02/27 10:54:56 ...ervices/task/task.go:53:handler() [E] Run task failed: migration failed: clone error: exit status 128 - error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly: CANCEL (err 8) error: 4749 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output ![Image](https://github.com/user-attachments/assets/7f9d977f-5a3f-4248-ad92-f219e92ad4d0)
Author
Owner

@GiteaBot commented on GitHub (Mar 29, 2025):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Mar 29, 2025): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14185