aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2025-06-04 23:45:45 +0800
committerGitHub <noreply@github.com>2025-06-04 15:45:45 +0000
commit497b83b75d567e6ee867d6be41ce37c4cee74e7e (patch)
treef22cd6f18752e42ab6eb930a1eac2e0c1e064052
parent79cc3698928cdddec433199ac4d9339b4bfcde7d (diff)
downloadgitea-497b83b75d567e6ee867d6be41ce37c4cee74e7e.tar.gz
gitea-497b83b75d567e6ee867d6be41ce37c4cee74e7e.zip
Fix migration pull request title too long (#34577)
Fix #34294
-rw-r--r--services/migrations/gitea_uploader.go2
1 files changed, 1 insertions, 1 deletions
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,