Fetch data from GitHub API
(endpoint)
| 12 | |
| 13 | |
| 14 | def 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 | |
| 24 | def analyze_workflow_runs(repo_owner, repo_name, days_back=30): |
no outgoing calls
no test coverage detected