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

Function get_pr_and_build_numbers

ci/scripts/github/github_docs_comment.py:34–39  ·  view source on GitHub ↗
(target_url)

Source from the content-addressed store, hash-verified

32
33
34def get_pr_and_build_numbers(target_url):
35 target_url = target_url[target_url.find("PR-") : len(target_url)]
36 split = target_url.split("/")
37 pr_number = split[0].strip("PR-")
38 build_number = split[1]
39 return {"pr_number": pr_number, "build_number": build_number}
40
41
42def get_doc_url(pr: dict[str, Any], base_docs_url: str = "https://pr-docs.tlcpack.ai") -> str:

Callers 1

get_doc_urlFunction · 0.70

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…