Skip to content

Commit 8ae96a3

Browse files
guillep2ktechknowlogick
authored andcommitted
Add change title notification for issues (#8061)
1 parent ee11974 commit 8ae96a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/repo/issue.go

+3
Original file line numberDiff line numberDiff line change
@@ -1045,11 +1045,14 @@ func UpdateIssueTitle(ctx *context.Context) {
10451045
return
10461046
}
10471047

1048+
oldTitle := issue.Title
10481049
if err := issue.ChangeTitle(ctx.User, title); err != nil {
10491050
ctx.ServerError("ChangeTitle", err)
10501051
return
10511052
}
10521053

1054+
notification.NotifyIssueChangeTitle(ctx.User, issue, oldTitle)
1055+
10531056
ctx.JSON(200, map[string]interface{}{
10541057
"title": issue.Title,
10551058
})

0 commit comments

Comments
 (0)