-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
cli/go-gh
#119Labels
bugSomething isn't workingSomething isn't workingpriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
During a gh pr list with jq filtering, any empty array passed to the unique operator outputs null.
$ gh --version
gh version 2.4.0+dfsg1 (2022-03-23 Ubuntu 2.4.0+dfsg1-2)
https://github.com/cli/cli/releases/latest
Steps to reproduce the behavior
gh pr list --json title -q '[] | unique'- Observe that the output is
null
Expected vs actual behavior
Expected output is the empty array ([]). Instead, null is produced.
Logs
$ gh pr list --json title -q '[] | unique'
null
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic