gh issue list

built-in
47.0% Savings
5 Commands
2.8K Tokens saved
3 Tests

Install

tokf install 2f06731756f2522c3708cedf6e371f58343bdf9f32d38af4c38420ed89444313
Safety checks passed

Filter definition

command = "gh issue list"
run = "gh issue list --json number,title,state,labels {args}"

[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