diff --git a/gitea/notifications.go b/gitea/notifications.go index 8f69cb3..515a0d4 100644 --- a/gitea/notifications.go +++ b/gitea/notifications.go @@ -23,10 +23,11 @@ type NotificationThread struct { // NotificationSubject contains the notification subject (Issue/Pull/Commit) type NotificationSubject struct { - Title string `json:"title"` - URL string `json:"url"` - LatestCommentURL string `json:"latest_comment_url"` - Type string `json:"type" binding:"In(Issue,Pull,Commit)"` + Title string `json:"title"` + URL string `json:"url"` + LatestCommentURL string `json:"latest_comment_url"` + Type string `json:"type"` + State StateType `json:"state"` } // NotifyStatus notification status type