MCPcopy Index your code
hub / github.com/RustPython/RustPython / check_pr

Function check_pr

scripts/generate_checklist.py:29–35  ·  view source on GitHub ↗
(pr_id: str)

Source from the content-addressed store, hash-verified

27
28
29def 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

Callers 1

parse_updated_lib_issueFunction · 0.85

Calls 3

startswithMethod · 0.45
jsonMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected