Skip to content

Commit

Permalink
Avoid run change title process when the title is same (#27467) (#27558)
Browse files Browse the repository at this point in the history
Backport #27467 manually.
  • Loading branch information
yp05327 authored Oct 10, 2023
1 parent 71f091e commit 29d3949
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/issue/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 29d3949

Please sign in to comment.