/Explore

madison / open-git

public
CodeIssues16Pull requests2InsightsCampfireDocs

[fix/update] Migrate to hexclave, and seed local

merged
#30 opened by madisonhexclave-migration→main
Conversation2Commits2Files changed42
Gitty
madisonopened this pull requestAuthor· 3 weeks ago

Summary

Implemented the local Hexclave development environment and a full repeatable local seed/reset flow.

Changes

  • Migrated local development from the cloud Hexclave project to the local Hexclave dashboard flow.
  • Added apps/web/hexclave.config.ts for source-controlled local Hexclave config.
  • Updated local dev scripts so pnpm --filter web dev runs through hexclave dev.
  • Added seed:local-dev and reset:local-dev scripts for repeatable local data setup.
  • Added production/local safety guards so the seed only runs when explicitly enabled with OPENGIT_LOCAL_DEV_SEED=1, against local database/URL settings, and never in production.
  • Updated env examples and Turbo env passthrough for the new local Hexclave variables.
  • Documented the local dashboard workflow, default login, reset behavior, and production cloud config in the README.

Seed Data

  • Creates 101 Hexclave/local users, including default login dev@open-git.local / password.
  • Creates 6 organizations with Hexclave teams, memberships, and role-based permissions.
  • Seeds 90 repositories across org and personal namespaces.
  • Adds realistic direct repository access grants across read, participate, write, and maintain-style access.
  • Seeds realistic repositories with actual git history, branches, docs, tests, and varied visibility.
  • Adds 225 issues with threaded comments and a mix of open/closed states.
  • Adds 23 pull requests across regular and rich fixture repositories.
  • Includes different PR states and review styles: open, closed, merged, approved, commented, requested changes.
  • Adds stacked PR fixtures, large-diff fixtures, failed-check fixtures, review-comment fixtures, and requested-change fixtures.
  • Adds PR comments, inline review comments, replies, resolved comment state, and acknowledgements.
  • Links every seeded PR to an issue.
  • Adds CI/check fixture data with workflows, workflow runs, jobs, steps, check suites, and check runs across passing, failed, and queued states.
  • Seeds Campfire channels, messages, replies, and thread mentions.
  • Enables Campfire at the repository settings level for repos that receive Campfire data.

Validation

Ran:

pnpm --filter web exec tsc --noEmit
pnpm --filter web exec eslint scripts/seed-local-dev.ts
pnpm --filter web reset:local-dev

Madison added 2 commits · 3 weeks ago

View commits
  • move off of deprecated stack-auth integration and into hexclave.4b0aac0
  • hexclave config, and proper seedinge585564
All checks passed· 3 weeks ago· 7 checks
  • Apply migrations to a fresh Postgressuccess
  • Build websuccess
  • Lintsuccess
  • Schema drift (db:generate is up to date)success
  • Testssuccess
  • Typechecksuccess
  • drizzle-kit check (snapshot/journal consistency)success

Sign in to comment.

Merge readiness

Ahead0
Behind0
Fast-forwardReady

This pull request can be merged without creating a merge commit.

Checks

Apply migrations to a fresh Postgressuccess
Build websuccess
Lintsuccess
Schema drift (db:generate is up to date)success
Testssuccess
Typechecksuccess
drizzle-kit check (snapshot/journal consistency)success

Autopilot

Debug

Reviews

Approved0
ReviewersNone yet

Running Autopilot requires review access on this PR and push access to the source branch.