gh issue view *
built-in 10.7% Savings
47 Commands
2.5K Tokens saved
2 Tests
Install
Safety checks passed
Filter definition
command = "gh issue view *"
description = "Structured JSON extraction of issue details with body"
run = "gh issue view {args} --json number,title,state,author,labels,assignees,milestone,body"
passthrough_args = ["--web", "-w"]
[json]
[[json.extract]]
path = "$.number"
as = "number"
[[json.extract]]
path = "$.title"
as = "title"
[[json.extract]]
path = "$.state"
as = "state"
[[json.extract]]
path = "$.author.login"
as = "author"
[[json.extract]]
path = "$.milestone"
as = "milestone"
[[json.extract]]
path = "$.body"
as = "body"
[[json.extract]]
path = "$.labels[*]"
as = "labels"
[[json.extract.fields]]
field = "name"
as = "name"
[[json.extract]]
path = "$.assignees[*]"
as = "assignees"
[[json.extract.fields]]
field = "login"
as = "login"
[on_success]
output = "#{number} {title}\nstate: {state}\nauthor: {author}\nassignees: {assignees | each: \"{login}\" | join: \", \"}\nlabels: {labels | each: \"{name}\" | join: \", \"}\nmilestone: {milestone}\n--\n{body}"
[on_failure]
tail = 10
Examples
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 view extracts JSON fields
~60 tokens → ~45 tokens
(25% saved)
Raw output
{"assignees":[],"author":{"login":"mpecan"},"body":"When running filters on large outputs, memory usage keeps growing.","labels":[{"name":"needs-triage"}],"milestone":null,"number":42,"state":"OPEN","title":"Bug: memory leak in filter engine"} Filtered output
#42 Bug: memory leak in filter engine state: OPEN author: mpecan assignees: labels: needs-triage milestone: null -- When running filters on large outputs, memory usage keeps growing.
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.Browse all filters