From ea35d5253655651c0ac8f5b6b46e568d98bae840 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 21 Sep 2020 01:23:12 +0200 Subject: [PATCH] NotificationSubject: add State --- gitea/notifications.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.40.1