Notifications Add State Field #384

Merged
6543 merged 2 commits from 6543/tea:notifications-add-state-field into master 2021-08-16 13:23:16 +00:00

View File

@ -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)
}