Skip to content

GitHub

Connect a GitHub repository to a Startup's code, either as a mirror of db.sb or as the place you edit, with every change reviewed, evaluated and deployed.

A Startup's code and definitions live in Repositories, inside db.sb. Connect GitHub when you or a developer want to work there; nothing requires it.

Pick a direction

DirectionSyncUse it when
db-firstmirrorYou build by asking your agent, and want a readable copy on GitHub. Git is rebuilt from db.sb.
git-firstimportA developer works in GitHub. Each commit arrives as a Change.

Either way db.sb stays the record, so the agent and the developer never edit two copies.

From commit to live

A commit pushed to GitHub arrives as a Change on its branch. It passes the Startup's Evals before Change.merge lands it. Version.deploy ships it as a new Version, and the previous Version stays one Change.revert away.

Guides

You sayWhat your agent does
"Connect the GitHub repo"Calls Integration.connect; you approve the grants on GitHub.
"Check this change before it merges"Calls Change.review and posts the result on the Change.
"Undo the last deploy"Calls Change.revert and deploys the Version before it.
"Disconnect GitHub"Calls Integration.revoke; the code stays in db.sb.

GitHub sees code and repository metadata only, as the subprocessors list states. Ship my changes is the guide for the full loop.