Trim title before insert/update to database to match the size requirements of database (#32498)

Fix #32489
This commit is contained in:
Lunny Xiao authored and GitHub committed 2024-11-14 07:19:14 +00:00
1 parent b4abb6deff
commit 98d9a71ffe
8 files changed
+18

No files matched your search

+1
View File
@@ -572,6 +572,7 @@ func NewPullRequest(ctx context.Context, repo *repo_model.Repository, issue *Iss
}
issue.Index = idx
issue.Title, _ = util.SplitStringAtByteN(issue.Title, 255)
if err = NewIssueWithIndex(ctx, issue.Poster, NewIssueOptions{
Repo: repo,