(
    queue: WebhookQueueProtocol,
    review: PullRequestReviewEvent | PullRequestReviewThreadEvent,
)
Trigger evaluation of the modified PR.
Trigger evaluation of the modified PR.
Trigger evaluation of the modified PR .
async def pr_review(
    queue: WebhookQueueProtocol,
    review: PullRequestReviewEvent | PullRequestReviewThreadEvent,
) -> None:
    """
    Trigger evaluation of the modified PR.
    """
    await queue.enqueue(
        event=WebhookEvent(
            repo_owner=review.repository.owner.login,
            repo_name=review.repository.name,
            pull_request_number=review.pull_request.number,
            target_name=review.pull_request.base.ref,
            installation_id=str(review.installation.id),
        )
    )
async def pr_review ( queue : WebhookQueueProtocol , review : PullRequestReviewEvent | PullRequestReviewThreadEvent , ) -> None : await queue . enqueue ( event = WebhookEvent ( repo_owner = review . repository . owner . login , repo_name = review . repository . name , pull_request_number = review . pull_request . number , target_name = review . pull_request . base . ref , installation_id = str ( review . installation . id ) , ) )