MCPcopy Create free account
hub / github.com/base/base / gh_json

Function gh_json

etc/scripts/local/reth_release.py:165–168  ·  view source on GitHub ↗

Run `gh` and parse JSON stdout.

(args: list[str])

Source from the content-addressed store, hash-verified

163
164
165def gh_json(args: list[str]) -> object:
166 """Run `gh` and parse JSON stdout."""
167 result = run(["gh", *args])
168 return json.loads(result.stdout)
169
170
171def fetch_pr(repo: str, number: int) -> PatchPr:

Callers 1

fetch_prFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected