Skip to content

Commit 5d26760

Browse files
guillep2klunny
authored andcommitted
Add change title notification for issues (#8064)
1 parent 9bea8d8 commit 5d26760

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
@@ -1047,11 +1047,14 @@ func UpdateIssueTitle(ctx *context.Context) {
10471047
return
10481048
}
10491049

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

1056+
notification.NotifyIssueChangeTitle(ctx.User, issue, oldTitle)
1057+
10551058
ctx.JSON(200, map[string]interface{}{
10561059
"title": issue.Title,
10571060
})

0 commit comments

Comments
 (0)