Browse Source

Add change title notification for issues (#8061)

for-closed-social
guillep2k 5 years ago
committed by techknowlogick
parent
commit
8ae96a37ce
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/repo/issue.go

+ 3
- 0
routers/repo/issue.go View File

@ -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,
})

Loading…
Cancel
Save