MCPcopy Create free account
hub / github.com/Autonoma-AI/autonoma / startPullRequestDeploy

Function startPullRequestDeploy

apps/api/src/github/github-http.router.ts:248–258  ·  view source on GitHub ↗

* 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>,
)

Source from the content-addressed store, hash-verified

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) => {

Callers 1

dispatchWebhookEventFunction · 0.85

Calls 2

deployFromWebhookMethod · 0.80
infoMethod · 0.45

Tested by

no test coverage detected