1
0
Fork 0

Avoid run change title process when the title is same (#27467) (#27558)

Backport #27467 manually.
This commit is contained in:
yp05327 2023-10-10 16:01:46 +09:00 committed by GitHub
parent 71f091ef97
commit 29d3949271
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,10 @@ func ChangeTitle(ctx context.Context, issue *issues_model.Issue, doer *user_mode
oldTitle := issue.Title
issue.Title = title
if oldTitle == title {
return nil
}
if err := issues_model.ChangeIssueTitle(ctx, issue, doer, oldTitle); err != nil {
return err
}