From e18eae7129fe6cce72614ffd9a533422bbf24a42 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 5 Jun 2025 01:36:09 +0800 Subject: [PATCH] Fix migration pull request title too long (#34577) (#34604) Backport #34577 by @lunny Fix #34294 Co-authored-by: Lunny Xiao --- services/migrations/gitea_uploader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/migrations/gitea_uploader.go b/services/migrations/gitea_uploader.go index acb94439fa..737bff24d0 100644 --- a/services/migrations/gitea_uploader.go +++ b/services/migrations/gitea_uploader.go @@ -765,7 +765,7 @@ func (g *GiteaLocalUploader) newPullRequest(ctx context.Context, pr *base.PullRe issue := issues_model.Issue{ RepoID: g.repo.ID, Repo: g.repo, - Title: prTitle, + Title: util.TruncateRunes(prTitle, 255), Index: pr.Number, Content: pr.Content, MilestoneID: milestoneID,