diff options
Diffstat (limited to 'modules/convert')
-rw-r--r-- | modules/convert/notification.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/convert/notification.go b/modules/convert/notification.go index 49abe01253..cc941678b6 100644 --- a/modules/convert/notification.go +++ b/modules/convert/notification.go @@ -47,6 +47,11 @@ func ToNotificationThread(n *models.Notification) *api.NotificationThread { if err == nil && comment != nil { result.Subject.LatestCommentURL = comment.APIURL() } + + pr, _ := n.Issue.GetPullRequest() + if pr != nil && pr.HasMerged { + result.Subject.State = "merged" + } } case models.NotificationSourceCommit: result.Subject = &api.NotificationSubject{ |