node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

fixed display of labels (they hadn’t been displaying) #550

Closed zevaverbach closed 6 years ago

zevaverbach commented 6 years ago

fixes #540. There was a bug in the labels var assignment in cmds/issue.js , from the nonexistent attribute issue.label, fixed with issue.labels. Further down, the labels array was pushed to from iterating on itself with label.name, rather than making a fresh array of label strings for display. Finally, made a distinctive color for issue display and displayed the appropriate singular/plural of 'label'.

zevaverbach commented 6 years ago

@protoEvangelion proposing formally here to add a flag for --show-labels so that labels will display when that flag is included, as well as when --detailed is present (currently true in this PR).