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

Method trigger_gha_ci

ci/scripts/github/github_tvmbot.py:476–487  ·  view source on GitHub ↗
(self, sha: str)

Source from the content-addressed store, hash-verified

474 return missing_expected_jobs
475
476 def trigger_gha_ci(self, sha: str) -> None:
477 logging.info("POST-ing a workflow_dispatch event to main.yml")
478 actions_github = GitHubRepo(
479 user=self.github.user, repo=self.github.repo, token=GH_ACTIONS_TOKEN
480 )
481 r = actions_github.post(
482 url="actions/workflows/main.yml/dispatches",
483 data={
484 "ref": "main",
485 },
486 )
487 logging.info(f"Successful workflow_dispatch: {r}")
488
489 def merge_if_passed_checks(self) -> dict[str, Any] | None:
490 failed_ci_jobs = self.find_failed_ci_jobs()

Callers 1

runMethod · 0.80

Calls 3

postMethod · 0.95
GitHubRepoClass · 0.90
infoMethod · 0.80

Tested by

no test coverage detected