From 4b9907fb54d5d2a373e1ed14fba74db0ac27d942 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 16 Aug 2021 21:23:16 +0800 Subject: [PATCH] Notifications Add State Field (#384) Reviewed-on: https://gitea.com/gitea/tea/pulls/384 Reviewed-by: Lunny Xiao Reviewed-by: Andrew Thornton Reviewed-by: Norwin Co-authored-by: 6543 <6543@obermui.de> Co-committed-by: 6543 <6543@obermui.de> --- modules/print/notification.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/print/notification.go b/modules/print/notification.go index 723bc13..1d45530 100644 --- a/modules/print/notification.go +++ b/modules/print/notification.go @@ -14,6 +14,7 @@ import ( func NotificationsList(news []*gitea.NotificationThread, output string, showRepository bool) { headers := []string{ "Type", + "State", "Index", "Title", } @@ -38,7 +39,7 @@ func NotificationsList(news []*gitea.NotificationThread, output string, showRepo index = "#" + index } - item := []string{string(n.Subject.Type), index, n.Subject.Title} + item := []string{string(n.Subject.Type), string(n.Subject.State), index, n.Subject.Title} if showRepository { item = append(item, n.Repository.FullName) }