For maintainers: the issue workflow and how a release is made. Contributing is described in
CONTRIBUTING.md. Commands use origin for TheBrainBro/brainbro.
Every open issue has exactly one workflow label:
status: pending: work has not started.status: in-progress: implementation or validation has started, but the issue is not ready to close.status: blocked: work started and cannot continue until a concrete dependency or decision is resolved. The blocker is recorded in an issue comment.
An assignment by itself does not mean work has started: the label changes to
status: in-progress when implementation, research or validation begins.
When choosing work, start from open issues with status: pending. Leave out issues labeled
epic, unless the work is to maintain the epic itself, and use the epic's unchecked child
issues instead.
- Next work:
is:issue is:open label:"status: pending" -label:epic - Active work:
is:issue is:open label:"status: in-progress" - Needs unblocking:
is:issue is:open label:"status: blocked"
Pull requests reference issues with Refs, never Closes or Fixes, so GitHub does not
close anything on merge. An issue is closed by hand once all of its required scope is in a
release. If only part of it shipped, it stays open with a comment or checklist saying what
remains.
Versions follow x.y.z. A release promotes develop to main; a hotfix fixes main
directly.
- Fetch
originand comparedevelopwithmain: every change that reacheddevelopsince the last release, the open pull requests targetingdevelop, and the latest CI results. - Choose the next version. Create
release/x.y.zfrom the latestdevelopand merge the latestmaininto it. A hotfix branches ashotfix/x.y.zfrommain. - Set the version in
backend/pyproject.toml,frontend/package.jsonandfrontend/package-lock.json, and commit it aschore: release x.y.z. - Open a pull request to
main. Its first line lists every issue included, on one line:Ref #123 #456. Add a## Release notessection (below): it is the only part of the description that gets published. Check the diff and the required checks. - Merging it runs
.github/workflows/release.yml:scripts/release.shtagsvx.y.zat the merge commit and publishes the GitHub Release with those notes. Then theimagesjob publishesbrainbro,brainbro-embedder,brainbro-extractorandbrainbro-caddytoghcr.io/thebrainbro/for amd64 and arm64, taggedx.y.z,x.yandlatest. - Close the issues whose whole scope shipped; comment on the partial ones with what remains.
A release deploys nothing. Each install upgrades on its own (deployment.md).
They are for people who use BrainBro or run a server: what they can do now, what works again, and what to do when upgrading. Leave out issue status, checks and version numbers. Start with one sentence that sums up the release, and drop the headings you don't need:
## Release notes
Richer notes from Telegram.
### New
- **Feature**: what it lets you do (#123).
### Improved
### Fixed
### UpgradingWithout this section, the release lists the titles of the issues on the Ref line.
scripts/release.sh <pr-number>redoes the tag and the GitHub Release by hand. It is safe to rerun: an existing tag or release is left as it is.DRY_RUN=1prints the notes and changes nothing,--not-latestkeeps an older line's release from being marked as latest, andREMOTEchanges the remote (defaultorigin).- To publish the images of an existing tag again, run the Release workflow by hand
(Actions → Release → Run workflow) with the version, without the
v.