From 8ae96a37ce6c02021e05ea57f9c600e19acdd6bb Mon Sep 17 00:00:00 2001 From: guillep2k <18600385+guillep2k@users.noreply.github.com> Date: Mon, 2 Sep 2019 23:35:31 -0300 Subject: [PATCH] Add change title notification for issues (#8061) --- routers/repo/issue.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 564a0eab09..a865bd0ad1 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -1045,11 +1045,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, })