Fix migration pull request title too long (#34577)

Fix #34294
pull/34509/head^2
Lunny Xiao 2025-06-04 23:45:45 +08:00 committed by GitHub
parent 79cc369892
commit 497b83b75d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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,