diff --git a/services/issue/issue.go b/services/issue/issue.go index 198dc0b2e..b1f418c32 100644 --- a/services/issue/issue.go +++ b/services/issue/issue.go @@ -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 }