You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
It appears that jq query is not parsed properly:
when filtering with native jq it works
➜ gh milestone list --state all --first 1 --output json | jq ".[].Title"
"2.38.0"
but with --jq parameter it doesn't
➜ gh milestone list --state all --first 1 --output json --jq ".[].Title"
Usage: gh milestone list [flags]
Flags:
-f, --first string View the first N elements from the list (default "100")
-h, --help help for list
-j, --jq string Filter JSON output using a jq expression in combination with --output=json
--orderBy.direction orderBy.direction Use the defined sorting direction: {asc|desc} (default asc)
--orderBy.field orderBy.field Sort the milestones by a field: {created_at|due_date|number|updated_at} (default number)
-o, --output output Decide the output of this command: {json|table} (default table)
-q, --query string View milestones by string pattern
-s, --state state View milestones by their state: {all|closed|open} (default open)
invalid character at position, 0; [
Current behavior
➜ gh milestone list --state all --first 1 --output json --jq ".[].Title"
Usage: gh milestone list [flags]
Flags:
-f, --first string View the first N elements from the list (default "100")
-h, --help help for list
-j, --jq string Filter JSON output using a jq expression in combination with --output=json
--orderBy.direction orderBy.direction Use the defined sorting direction: {asc|desc} (default asc)
--orderBy.field orderBy.field Sort the milestones by a field: {created_at|due_date|number|updated_at} (default number)
-o, --output output Decide the output of this command: {json|table} (default table)
-q, --query string View milestones by string pattern
-s, --state state View milestones by their state: {all|closed|open} (default open)
invalid character at position, 0; [
Expected behavior
➜ gh milestone list --state all --first 1 --output json --jq ".[].Title"
"3.75.0"
Environment:
OS: Ubuntu 20.04.5 LTS
Shell: zsh 5.8 (x86_64-ubuntu-linux-gnu)
The text was updated successfully, but these errors were encountered:
I'll try to schedule a release by the end of this week, including the other enhancement I mentioned. If I fail to accomplish that enhancement, I'll release only the fix for this bug.
Description
It appears that
jq
query is not parsed properly:when filtering with native
jq
it worksbut with
--jq
parameter it doesn'tCurrent behavior
Expected behavior
Environment:
The text was updated successfully, but these errors were encountered: