(url)
| 44 | |
| 45 | |
| 46 | def github_get(url): |
| 47 | headers = {"Accept": "application/vnd.github.raw+json"} |
| 48 | if "GITHUB_TOKEN" in os.environ: |
| 49 | headers["Authorization"] = f"Bearer {os.environ['GITHUB_TOKEN']}" |
| 50 | return http.request("GET", url, headers=headers) |
| 51 | |
| 52 | |
| 53 | def fetch_and_save(url, file_path): |
no test coverage detected