Skip to content

Commit a8a4f96

Browse files
lunnyGiteaBot
authored andcommitted
Fix migration pull request title too long (go-gitea#34577)
Fix go-gitea#34294
1 parent c60bc26 commit a8a4f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/migrations/gitea_uploader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ func (g *GiteaLocalUploader) newPullRequest(ctx context.Context, pr *base.PullRe
765765
issue := issues_model.Issue{
766766
RepoID: g.repo.ID,
767767
Repo: g.repo,
768-
Title: prTitle,
768+
Title: util.TruncateRunes(prTitle, 255),
769769
Index: pr.Number,
770770
Content: pr.Content,
771771
MilestoneID: milestoneID,

0 commit comments

Comments
 (0)