* Deploy path for pull_request opened/synchronize/reopened: starts the deploy * workflow directly. Silently skipped when previews are disabled (dev / * self-host without preview infrastructure).
(
action: PreviewDeployAction,
organizationId: string,
payload: Record<string, unknown>,
)
| 246 | |
| 247 | // Ack immediately and process in the background. Superseding an in-flight |
| 248 | // preview deploy waits (tens of seconds) for the old run to cancel |
| 249 | // gracefully before starting its replacement; awaiting that here would blow |
| 250 | // GitHub's 10s webhook delivery timeout and surface as failed deliveries. |
| 251 | // The dispatched work is durable (Temporal), so a thrown error only needs |
| 252 | // logging: GitHub gets 200 either way, and redelivery would not help. |
| 253 | void dispatchWebhookEvent( |
| 254 | eventType, |
| 255 | installationId, |
| 256 | organizationId, |
| 257 | githubService, |
| 258 | prCacheService, |
| 259 | payload, |
| 260 | deliveryId, |
| 261 | ).catch((error) => { |
no test coverage detected