MCPcopy Create free account
hub / github.com/apache/tvm / find_target_url

Function find_target_url

ci/scripts/github/github_docs_comment.py:26–31  ·  view source on GitHub ↗
(pr_head: dict[str, Any])

Source from the content-addressed store, hash-verified

24
25
26def find_target_url(pr_head: dict[str, Any]):
27 for status in pr_head["statusCheckRollup"]["contexts"]["nodes"]:
28 if status.get("context", "") == "tvm-ci/pr-head":
29 return status["targetUrl"]
30
31 raise RuntimeError(f"Unable to find tvm-ci/pr-head status in {pr_head}")
32
33
34def get_pr_and_build_numbers(target_url):

Callers 1

get_doc_urlFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…