MCPcopy Create free account
hub / github.com/AztecProtocol/aztec-packages / _gh

Function _gh

ci3/ci-metrics/github_data.py:36–46  ·  view source on GitHub ↗
(args: list[str])

Source from the content-addressed store, hash-verified

34
35
36def _gh(args: list[str]) -> str | None:
37 try:
38 result = subprocess.run(
39 ['gh'] + args,
40 capture_output=True, text=True, timeout=30
41 )
42 if result.returncode == 0:
43 return result.stdout.strip()
44 except (FileNotFoundError, subprocess.TimeoutExpired) as e:
45 print(f"[rk_github] gh error: {e}")
46 return None
47
48
49# ---- PR lifecycle ----

Callers 5

_fetch_and_process_prsFunction · 0.85
_fetch_all_deploysFunction · 0.85
_fetch_branch_lagFunction · 0.85
get_pr_authorFunction · 0.85
_fetch_merge_queue_runsFunction · 0.85

Calls 2

printFunction · 0.85
runMethod · 0.65

Tested by

no test coverage detected