Add --fields
to notification & milestone listings #422
|
@ -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 ""
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user
?