Skip to content

fix(github): bound initial ref backfill - #84

Merged
f0rr0 merged 2 commits into
nextfrom
f0rr0/automate-supabase-migrations
Aug 29, 2026
Merged

f0rr0 merged 2 commits into
nextfrom
f0rr0/automate-supabase-migrations

Conversation

@f0rr0

@f0rr0 f0rr0 commented Aug 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • remove the hard-coded production branch from the migration hook and rely on Vercel production context
  • store one fixed ref-history boundary per tracked account, seeded from the earliest existing durable commit
  • pass that boundary to GitHub GraphQL history(since:) only when an observation has no exact commit count
  • accept refs whose entire reachable history predates the boundary while preserving exact-count validation

Result

The first repository sweep fills gaps only within the timeline already being retained. It cannot drift backward as commits are discovered, and later ref movements remain incremental. New accounts begin at checkpoint creation time.

Migration 0009 is applied automatically during the Vercel production build. Preview and local builds continue to skip production migrations.

Validation

  • 119 tests passing, including the PostgreSQL migration suite
  • typecheck
  • lint and formatting
  • production build
  • authenticated live GitHub GraphQL checks for populated and empty bounded history pages

@vercel

vercel Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
f0rr0-github-io Ready Ready Preview Aug 29, 2026 4:03pm

@f0rr0 f0rr0 changed the title refactor(ci): defer production branch selection to Vercel fix(github): bound initial ref backfill Aug 29, 2026
@f0rr0
f0rr0 merged commit 5e6c8ef into next Aug 29, 2026
3 checks passed
@f0rr0
f0rr0 deleted the f0rr0/automate-supabase-migrations branch August 29, 2026 16:05

This branch was successfully deployed

1 active deployment
Preview — 5d0a2c87 Deployed Aug 29, 2026 by vercel[bot]
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