Add --fields to notification & milestone listings #422

Merged
6543 merged 22 commits from noerw/tea:fields-flag into main 2022-09-13 19:08:19 +00:00
Showing only changes of commit 5e9ba516f0 - Show all commits

View File

@ -33,9 +33,6 @@ var NotificationFields = []string{
"state",
"title",
"repository",
// "url1",
// "url2",
// "url3",
}
type printableNotification struct {
noerw marked this conversation as resolved Outdated
@ -81,15 +78,6 @@ func (n printableNotification) FormatField(field string, machineReadable bool) s
case "repo", "repository":
return n.Repository.FullName
// NOTE: these are all API URLs, we are interested in web UI URLs only...
// case "url1":
// return n.URL
// case "url2":
// return n.Subject.URL
// case "url3":
// return n.Subject.LatestCommentURL
}
return ""
}