MCPcopy Create free account
hub / github.com/comaps/comaps / get_pr_info

Function get_pr_info

tools/python/cherry_picking_issue.py:38–48  ·  view source on GitHub ↗
(pr_number)

Source from the content-addressed store, hash-verified

36
37
38def get_pr_info(pr_number):
39 if pr_number not in pr_cache:
40 raw = gh_api(f"repos/{REPO}/pulls/{pr_number}")
41 if raw:
42 data = json.loads(raw)
43 pr_cache[pr_number] = {
44 "title": data.get("title", ""),
45 }
46 else:
47 pr_cache[pr_number] = {"title": ""}
48 return pr_cache[pr_number]
49
50
51def git_log(commit_range):

Callers 1

format_plainFunction · 0.85

Calls 2

gh_apiFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected