MCPcopy Create free account
hub / github.com/FastLED/FastLED / run_gh

Function run_gh

ci/github_project_drift_sync.py:34–46  ·  view source on GitHub ↗
(args: list[str])

Source from the content-addressed store, hash-verified

32
33
34def run_gh(args: list[str]) -> str:
35 result = subprocess.run(
36 ["gh", *args],
37 capture_output=True,
38 text=True,
39 check=False,
40 encoding="utf-8",
41 errors="replace",
42 )
43 if result.returncode != 0:
44 print(f"FAIL: gh {' '.join(args)}: {result.stderr}", file=sys.stderr)
45 sys.exit(1)
46 return result.stdout or ""
47
48
49def graphql(query: str, **variables: Any) -> dict[str, Any]:

Callers 2

graphqlFunction · 0.85
fetch_repo_itemsFunction · 0.85

Calls 2

printFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected