Skip to content

feat: cross-repo cloud preview dispatch on PRs#12

Open
khaliqgant wants to merge 2 commits intomainfrom
feat/cloud-preview-dispatch
Open

feat: cross-repo cloud preview dispatch on PRs#12
khaliqgant wants to merge 2 commits intomainfrom
feat/cloud-preview-dispatch

Conversation

@khaliqgant
Copy link
Member

@khaliqgant khaliqgant commented Mar 26, 2026

Summary

  • Adds .github/workflows/cloud-preview.yml that triggers ephemeral CF Worker preview deploys in the cloud repo when PRs are opened/updated
  • Each PR gets its own isolated D1 database with fresh migrations
  • Preview resources (D1, KV, worker) are cleaned up automatically on PR close

How it works

PR opened/synced → dispatches cloud/preview-relayfile.yml (action=deploy)
  → creates relayfile-pr-{N} D1 + KV
  → runs all migrations from zero
  → deploys relayfile-api-pr-{N} worker
  → smoke test + E2E
  → reports ✅/❌ commit status on this PR

PR closed → dispatches cleanup (action=cleanup)
  → deletes D1, KV, worker

Prerequisites

  • CLOUD_DISPATCH_TOKEN secret (GitHub App installation token with actions:write on AgentWorkforce/cloud)

Test plan

  • Open a test PR and verify the cloud repo workflow is triggered
  • Verify commit status appears on the PR
  • Verify cleanup runs on PR close

🤖 Generated with Claude Code


Open with Devin

Triggers ephemeral CF Worker preview deploys in the cloud repo when PRs
are opened/updated. Cleans up (deletes D1, KV, worker) on PR close.
Each PR gets its own isolated D1 database with fresh migrations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant