+5
appview/models/notifications.go
+5
appview/models/notifications.go
···
20
20
NotificationTypeIssueReopen NotificationType = "issue_reopen"
21
21
NotificationTypePullClosed NotificationType = "pull_closed"
22
22
NotificationTypePullReopen NotificationType = "pull_reopen"
23
+
NotificationTypeUserMentioned NotificationType = "user_mentioned"
23
24
)
24
25
25
26
type Notification struct {
···
63
64
return "git-pull-request-create"
64
65
case NotificationTypeFollowed:
65
66
return "user-plus"
67
+
case NotificationTypeUserMentioned:
68
+
return "message-square"
66
69
default:
67
70
return ""
68
71
}
···
113
116
return prefs.PullCreated // same pref for now
114
117
case NotificationTypeFollowed:
115
118
return prefs.Followed
119
+
case NotificationTypeUserMentioned:
120
+
return true // always notify on mention
116
121
default:
117
122
return false
118
123
}