loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[API] pull notification subject status: add "merged" (#15344)

Current subject status can be "", "open" and "closed". This add "merged" to it.

authored by

6543 and committed by
GitHub
147826a5 9a255392

+5
+5
modules/convert/notification.go
··· 47 47 if err == nil && comment != nil { 48 48 result.Subject.LatestCommentURL = comment.APIURL() 49 49 } 50 + 51 + pr, _ := n.Issue.GetPullRequest() 52 + if pr != nil && pr.HasMerged { 53 + result.Subject.State = "merged" 54 + } 50 55 } 51 56 case models.NotificationSourceCommit: 52 57 result.Subject = &api.NotificationSubject{