feat(tanstack-migrator): flag -tanstack repos as cfworkers-builds in catalog#515
Merged
JonasJesus42 merged 1 commit intoJul 8, 2026
Conversation
…the catalog Sets metadata.platform = "cfworkers-builds" on the migrated repo's row in the decocms `sites` catalog so the Fresh/Deno k8s deployer stops watching the -tanstack repo (it keeps trying to deploy it and leaves a broken deployment). setSitePlatform does a guarded read-merge-write (never clobbers other metadata, never throws, no-ops when the catalog isn't configured or the row isn't indexed yet). Auto-applied at creating_repo (early, best-effort) and re-asserted at deploy (once the repo is indexed); SITE_SET_PLATFORM applies it on demand to existing -tanstack sites the bot is already fighting. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
JonasJesus42
force-pushed
the
feat/catalog-cfworkers-platform
branch
from
July 8, 2026 13:30
e1e4e3f to
9a4b1fb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sets
metadata.platform = "cfworkers-builds"on the migrated repo's row in the decocmssitescatalog so the deco Fresh/Deno k8s deployer stops watching the-tanstackrepo (today it keeps trying to deploy it and leaves a broken deployment).setSitePlatformdoes a guarded read-merge-write on the single row matched bygithub_repo_url— it never clobbers othermetadatakeys, never throws, and no-ops when the catalog isn't configured or the row isn't indexed yet (so it can't block a migration). It's auto-applied atcreating_repo(early, best-effort) and re-asserted at deploy (once the repo is indexed); the newSITE_SET_PLATFORMtool applies it on demand to existing-tanstacksites the bot is already fighting. Uses the existingDECOCMS_SUPABASE_KEY(service-role).Stacked on
add-decofile-sync-workflow-tool; typecheck + tests green.🤖 Generated with Claude Code
Summary by cubic
Mark migrated -tanstack repos as Cloudflare Workers Builds in the decocms
sitescatalog to stop the Fresh/Deno k8s deployer from watching and redeploying them. Applied automatically during repo creation and again after deploy, with a tool to backfill existing sites.New Features
metadata.platform = "cfworkers-builds"without clobbering other metadata, matches exactowner/name, and returns{ ok, reason }instead of throwing.SITE_SET_PLATFORMto flag a specificsiteIdorowner/name; default platform iscfworkers-builds; returns{ ok, repo, platform, reason }.Migration
DECOCMS_SUPABASE_URLandDECOCMS_SUPABASE_KEY(service-role) to enable catalog writes.SITE_SET_PLATFORMfor existing-tanstackrepos the bot is currently trying to deploy.Written for commit 9a4b1fb. Summary will update on new commits.