diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 3904d2953..12c38b862 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -1047,11 +1047,14 @@ func UpdateIssueTitle(ctx *context.Context) { return } + oldTitle := issue.Title if err := issue.ChangeTitle(ctx.User, title); err != nil { ctx.ServerError("ChangeTitle", err) return } + notification.NotifyIssueChangeTitle(ctx.User, issue, oldTitle) + ctx.JSON(200, map[string]interface{}{ "title": issue.Title, })