From c8ba8940ab96fc2796c5401782328f4f327edba2 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 13 Aug 2021 21:22:55 +0200 Subject: [PATCH] Add state to notification list --- 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 31d4b01..e7a0437 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{n.Subject.Type, index, n.Subject.Title} + item := []string{n.Subject.Type, string(n.Subject.State), index, n.Subject.Title} if showRepository { item = append(item, n.Repository.FullName) } -- 2.40.1