MCPcopy Index your code
hub / github.com/streamlit/streamlit / _run_gh_command

Function _run_gh_command

scripts/fetch_flaky_tests.py:40–52  ·  view source on GitHub ↗

Run a gh CLI command and return the output.

(args: list[str])

Source from the content-addressed store, hash-verified

38
39
40def _run_gh_command(args: list[str]) -> str:
41 """Run a gh CLI command and return the output."""
42 result = subprocess.run(
43 ["gh", *args],
44 capture_output=True,
45 text=True,
46 check=False,
47 )
48 if result.returncode != 0:
49 print(f"Error running gh command: {' '.join(args)}", file=sys.stderr)
50 print(f"stderr: {result.stderr}", file=sys.stderr)
51 sys.exit(1)
52 return result.stdout
53
54
55def _fetch_successful_workflow_runs(

Callers 1

Calls 2

runMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…