(check_run_event: CheckRunEvent)
Trigger evaluation of all PRs included in check run.
Trigger evaluation of all PRs included in check run.
Trigger evaluation of all PRs included in check run .
def check_run(check_run_event: CheckRunEvent) -> Iterator[WebhookEvent]:
    """
    Trigger evaluation of all PRs included in check run.
    """
    # Prevent an infinite loop when we update our check run
    if check_run_event.check_run.name == queries.CHECK_RUN_NAME:
        return
    for pr in check_run_event.check_run.pull_requests:
        # filter out pull requests for other repositories
        if pr.base.repo.id != check_run_event.repository.id:
            continue
        yield WebhookEvent(
            repo_owner=check_run_event.repository.owner.login,
            repo_name=check_run_event.repository.name,
            pull_request_number=pr.number,
            target_name=pr.base.ref,
            installation_id=str(check_run_event.installation.id),
        )
def check_run ( check_run_event : CheckRunEvent ) -> Iterator [ WebhookEvent ] : # Prevent an infinite loop when we update our check run if check_run_event . check_run . name == queries . CHECK_RUN_NAME : return for pr in check_run_event . check_run . pull_requests : # filter out pull requests for other repositories if pr . base . repo . id != check_run_event . repository . id : continue yield WebhookEvent ( repo_owner = check_run_event . repository . owner . login , repo_name = check_run_event . repository . name , pull_request_number = pr . number , target_name = pr . base . ref , installation_id = str ( check_run_event . installation . id ) , )