(pr_id: str)
| 27 | |
| 28 | |
| 29 | def check_pr(pr_id: str) -> bool: |
| 30 | if pr_id.startswith("#"): |
| 31 | pr_id = pr_id[1:] |
| 32 | int_pr_id = int(pr_id) |
| 33 | req = f"https://api.github.com/repos/RustPython/RustPython/pulls/{int_pr_id}" |
| 34 | response = requests.get(req).json() |
| 35 | return response["merged_at"] is not None |
| 36 | |
| 37 | |
| 38 | @dataclasses.dataclass |
no test coverage detected