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