From 51995f8a0b79b63c2ebe71c2832b8ad5661796ca Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Fri, 6 Oct 2023 07:48:29 +0000 Subject: [PATCH] add --- services/issue/issue.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/issue/issue.go b/services/issue/issue.go index 198dc0b2e189..b1f418c32e56 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 }