gh issue list
built-in 40.1% Savings
23 Commands
8.3K Tokens saved
3 Tests
Install
Safety checks passed
Filter definition
command = "gh issue list"
description = "Structured JSON extraction of issue number, title, state, and labels"
run = "gh issue list --json number,title,state,labels {args}"
passthrough_args = ["--web", "-w"]
[json]
[[json.extract]]
path = "$[*]"
as = "issues"
[[json.extract.fields]]
field = "number"
as = "number"
[[json.extract.fields]]
field = "title"
as = "title"
[[json.extract.fields]]
field = "state"
as = "state"
[[json.extract.fields]]
field = "labels"
as = "labels"
[on_success]
output = "{issues | each: \"#{number} {title} {state} {labels}\" | join: \"\\n\"}"
[on_failure]
tail = 10
Examples
empty issue list shows no issues
~0 tokens → ~0 tokens
Raw output
[]
Filtered output
auth error shows tail
~39 tokens → ~39 tokens
Raw output
To get started with GitHub CLI, please run: gh auth login Alternatively, populate the GH_TOKEN environment variable with a GitHub API authentication token.
Filtered output
To get started with GitHub CLI, please run: gh auth login Alternatively, populate the GH_TOKEN environment variable with a GitHub API authentication token.
issue list extracts JSON fields
~71 tokens → ~43 tokens
(39% saved)
Raw output
[{"labels":[{"name":"enhancement"}],"number":42,"state":"OPEN","title":"Bug: memory leak in filter engine"},{"labels":[{"name":"docs"}],"number":38,"state":"OPEN","title":"feat: add JSON output mode"},{"labels":[],"number":35,"state":"CLOSED","title":"docs: improve README examples"}] Filtered output
#42 Bug: memory leak in filter engine OPEN [{"name":"enhancement"}]
#38 feat: add JSON output mode OPEN [{"name":"docs"}]
#35 docs: improve README examples CLOSED [] Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.Browse all filters