forked from NYANDEV/forgejo
Current subject status can be "", "open" and "closed". This add "merged" to it.
This commit is contained in:
parent
0dfde367c1
commit
3bde297121
1 changed files with 5 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue