Skip to content
Permalink
Browse files

Add change title notification for issues (#8064)

  • Loading branch information...
guillep2k authored and lunny committed Sep 3, 2019
1 parent 9bea8d8 commit 5d2676089e12a74d9fb599572854cb2c8ec848f9
Showing with 3 additions and 0 deletions.
  1. +3 −0 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,
})

0 comments on commit 5d26760

Please sign in to comment.
You can’t perform that action at this time.