(username)
| 14 | |
| 15 | |
| 16 | def fetch_user(username): |
| 17 | logger.info("fetching %s", username) |
| 18 | resp = requests.get( |
| 19 | f"https://api.github.com/users/{username}", |
| 20 | headers={"Accept": "application/vnd.github.v3+json"}, |
| 21 | ) |
| 22 | resp.raise_for_status() |
| 23 | return resp.json() |
| 24 | |
| 25 | |
| 26 | def get_user_data(data): |
no test coverage detected