Branches
A change moves up through three branches:
feature branch --PR--> main --PR--> beta --PR--> production
| Branch | What it is | What runs | Who merges |
|---|---|---|---|
main | Daily work. Every PR goes here first. | Checks | Any reviewer |
beta | Next release, for testers. | Checks | Owner |
production | What users run. | Checks, then the release | Owner only |
Checks (.github/workflows/checks.yml):
- private data check (Private data)
- server:
cargo test -j1 - docs site:
cargo test -j1anddocs-site check
The release (.github/workflows/release.yml) runs on each push to production, after the checks pass:
- runs the checks again
- makes the changelog: every commit message since the last release tag
- tags the release
vYYYY.MM.DD-Nand makes a GitHub release with that changelog
The Android build and server deploy still run from the Mac with assistantx-app-release and assistantx-deploy, from a production checkout. CI does not hold the signing key. Moving the Android build into CI is on Next.
Rules
- Never push straight to
main,betaorproduction. Open a PR. - Never force-push a shared branch.
- Feature branch names:
feat/...,fix/...,docs/...,chore/.... betaonly takes PRs frommain.productiononly takes PRs frombeta.- A hot fix goes to
mainfirst, then moves up like any change. If it can't wait, branchfix/...fromproduction, merge it there, then merge it back tobetaandmainthe same day. - A red check blocks the merge. Fix it; never skip it.
Promote a release
- On
main, all checks green. Open a PRmain->beta. Title:Beta: <date>. - Testers use the beta build. Fix bugs on
mainand promote again. - When beta is good, open a PR
beta->production. Title:Release: <date>. The body lists what users will see. - The owner merges. The release workflow writes the changelog and tags it.
- From the
productioncheckout, runassistantx-deployandassistantx-app-release.
Roll back: revert the merge on production, then deploy and re-publish the last good APK.