(pr_head: dict[str, Any])
| 24 | |
| 25 | |
| 26 | def 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 | |
| 34 | def get_pr_and_build_numbers(target_url): |
no test coverage detected
searching dependent graphs…