MCPcopy Create free account
hub / github.com/trailofbits/algo / get_github_api_data

Function get_github_api_data

scripts/track-test-effectiveness.py:14–21  ·  view source on GitHub ↗

Fetch data from GitHub API

(endpoint)

Source from the content-addressed store, hash-verified

12
13
14def get_github_api_data(endpoint):
15 """Fetch data from GitHub API"""
16 cmd = ["gh", "api", endpoint]
17 result = subprocess.run(cmd, capture_output=True, text=True)
18 if result.returncode != 0:
19 print(f"Error fetching {endpoint}: {result.stderr}")
20 return None
21 return json.loads(result.stdout)
22
23
24def analyze_workflow_runs(repo_owner, repo_name, days_back=30):

Callers 2

analyze_workflow_runsFunction · 0.85
correlate_with_issuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected