gh issue view *

built-in
10.3% Savings
14 Commands
777 Tokens saved
2 Tests

Install

tokf install adddb5c8a1392c31dbdec562194616b8f442444b79552062417230d9c9047cf2
Safety checks passed

Filter definition

command = "gh issue view *"
run = "gh issue view {args} --json number,title,state,author,labels,assignees,milestone,body"

[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