mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 03:54:00 +09:00
Backport #39888 by @yuhongwei380 For repos with many issues, the GitHub API only allows cursor-based pagination instead of page-based pagination after a certain page. A full migration of such repos failed with a 422 response. Now, we dynamically switch how we migrate based on the response from the GitHub API. Fixes #39882 Assisted-by: Codex:GPT-6 Signed-off-by: Phoenix <44333391+yuhongwei380@users.noreply.github.com> Co-authored-by: Phoenix <44333391+yuhongwei380@users.noreply.github.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: silverwind <me@silverwind.io>