Permalink
Browse files

Add milestone (green) and assigned (blue) to short list

Right side of short list.  Helpful for bug triage.

TODO
- make optional based on some option (like --extra-values or --wide)
- the NO-MILE and NO-ASGN are ugly and not consistent with the rest
  of the tool. But I want something I can grep on the output for
- way to make more visually identifiable without color?
  • Loading branch information...
1 parent bbde9c2 commit eeedaabcd561d7f0cde38f27f47724f413c09f09 @sefk committed Aug 27, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 ghi
View
5 ghi
@@ -1923,6 +1923,10 @@ module GHI
"#{bright { n.to_s.rjust nmax }}:",
truncate(title, l),
format_labels(labels),
+ (fg(:green) {i['milestone']['title']} if i['milestone'] ),
+ (fg(:green) {'NO-MILE'} if not i['milestone'] ),
+ (fg(:blue) {i['assignee']['login']} if i['assignee'] ),
+ (fg(:blue) {'NO-ASGN'} if not i['assignee'] ),
(fg('aaaaaa') { c } unless c == 0),
(fg('aaaaaa') { '' } if p),
(fg(:yellow) { '@' } if a)
@@ -3277,6 +3281,7 @@ module GHI
end
end
opts.on('-v', '--verbose') { self.verbose = true }
+ # opts.on('-e', '--extra', 'Extra list fields: milestone, assigned' ) { self.extra_fields = true }
opts.on('-w', '--web') { self.web = true }
opts.separator ''
opts.separator 'Global options'

0 comments on commit eeedaab

Please sign in to comment.