gh pr checks *

built-in
0.0% Savings
0 Commands
0 Tokens saved
3 Tests

Install

tokf install 205a6216a777d605cdbc8e923e24f125c34b658054afed0d9080dc6fe144045a
Safety checks passed

Filter definition

command = "gh pr checks *"
run = "gh pr checks {args} --json name,state,workflow"
passthrough_args = ["--watch", "--web", "-w"]

[json]

[[json.extract]]
path = "$[*]"
as = "checks"

[[json.extract.fields]]
field = "name"
as = "name"

[[json.extract.fields]]
field = "state"
as = "state"

[[json.extract.fields]]
field = "workflow"
as = "workflow"

[on_success]
output = "{checks | each: \"{state}  {name}  ({workflow})\" | join: \"\\n\"}"

[on_failure]
output = "{checks | each: \"{state}  {name}  ({workflow})\" | join: \"\\n\"}"

Examples

all checks passed shows individual states ~40 tokens → ~17 tokens (57% saved)
Raw output
[{"name":"ci/build","state":"SUCCESS","workflow":"CI"},{"name":"ci/test","state":"SUCCESS","workflow":"CI"},{"name":"lint","state":"SUCCESS","workflow":"Lint"}]
Filtered output
SUCCESS  ci/build  (CI)
SUCCESS  ci/test  (CI)
SUCCESS  lint  (Lint)
failing checks shows all check states ~40 tokens → ~17 tokens (57% saved)
Raw output
[{"name":"ci/build","state":"SUCCESS","workflow":"CI"},{"name":"ci/test","state":"FAILURE","workflow":"CI"},{"name":"lint","state":"SUCCESS","workflow":"Lint"}]
Filtered output
SUCCESS  ci/build  (CI)
FAILURE  ci/test  (CI)
SUCCESS  lint  (Lint)
failures visible even when gh --json exits 0 ~123 tokens → ~63 tokens (49% saved)
Raw output
[{"name":"CI/Coverage","state":"FAILURE","workflow":"CI"},{"name":"CI/Test","state":"FAILURE","workflow":"CI"},{"name":"CI/Build (macos-latest)","state":"SUCCESS","workflow":"CI"},{"name":"CI/Build (ubuntu-latest)","state":"SUCCESS","workflow":"CI"},{"name":"CI/Build (windows-latest)","state":"SUCCESS","workflow":"CI"},{"name":"CI/Clippy","state":"SUCCESS","workflow":"CI"},{"name":"CI/Documentation","state":"SUCCESS","workflow":"CI"},{"name":"CI/Rustfmt","state":"SUCCESS","workflow":"CI"}]
Filtered output
FAILURE  CI/Coverage  (CI)
FAILURE  CI/Test  (CI)
SUCCESS  CI/Build (macos-latest)  (CI)
SUCCESS  CI/Build (ubuntu-latest)  (CI)
SUCCESS  CI/Build (windows-latest)  (CI)
SUCCESS  CI/Clippy  (CI)
SUCCESS  CI/Documentation  (CI)
SUCCESS  CI/Rustfmt  (CI)
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters