(self, sha: str)
| 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() |
no test coverage detected