How to contribute: a Gitflow‐inspired struture - jejellyroll-fr/fpdb-3 GitHub Wiki
Branches and releases
A Gitflow-inspired structure, for better collaboration.

Branches
| Branch | Created from | Merged into | Holds |
|---|---|---|---|
main |
— | — | Stable, production-ready code. Releases are cut from it. |
development |
— | — | The integration branch. Everything else derives from it. |
feature/xxxx |
development |
development |
New work, once complete |
bugfix/xxxx |
development |
development |
Non-critical fixes |
hotfix/xxxx |
main |
main and development |
Critical production fixes |
release/xxxx |
development |
main |
Final tests and adjustments before a release |
The one to remember: a hotfix goes back into both branches. Merging it only
into main means the next release from development reintroduces the bug.
Sending a change
- Branch from
development. - Make the change, with tests.
make lint && make format && make testbefore pushing.- Open a pull request against
development.
Parser behaviour is locked by a golden-master corpus, so a change to a converter is expected to come with a fixture — see Adding a room parser.
Cutting a release
1. Bump the version — in three places
The version is written independently in three files, and all three have to move:
| File | Field |
|---|---|
pyproject.toml |
[project] version |
pyproject.toml |
the second version further down the file |
fpdb_3_legacy/__init__.py |
__version__ |
Then refresh the lockfile so uv.lock records the new version too.
A release where these disagree produces binaries that report the wrong version, which is only discovered later, in a bug report.
2. Prepare the branch
Cut release/x.y.z from development with the version bump and
docs/RELEASE_NOTES_x.y.z.md, and merge it into development through a pull
request. Then merge development into main with --no-ff, check that both
branches now hold the same tree, and push main:
git checkout main && git reset --hard origin/main
git merge --no-ff origin/development -m "Merge branch 'development' into main for release x.y.z"
git rev-parse origin/development^{tree} HEAD^{tree} # must print the same hash twice
git push origin main
main only moves when a release is cut, so it always points at the released version.
3. Tag and publish
Tags are v-prefixed: v3.6.0, not 3.6.0.
Pushing the tag is what cuts the release (since 3.10.0):
git tag -a vx.y.z -m "FPDB x.y.z" origin/main
git push origin vx.y.z
CI then drafts the GitHub release, titled "FPDB x.y.z", with
docs/RELEASE_NOTES_x.y.z.md as its text. It builds the five archives
(PyInstaller for Linux x64 and Windows x64, PyOxidizer for Linux x64, Windows
x64 and macOS ARM64) and attaches them. It publishes the release once the builds
and the tests pass. If anything fails, the release stays a draft. A version with
a hyphen (v3.11.0-rc1) becomes a prerelease.
Tag the commit on main, after the merge: CI runs the workflow as it is at the
tagged commit. gh workflow run CI --ref vx.y.z rebuilds a tag's archives.
4. Write the release notes
docs/RELEASE_NOTES_x.y.z.md must exist before the tag is pushed: it becomes the
GitHub release text. Then add a wiki page for the version, following
Release notes 3.10.0, and update:
- the version stated on Home,
- any row in Compatibility online Rooms the release changes,
- PARSER_SUPPORT.md if a converter changed tier.
What CI checks
.github/workflows/ci.yml runs on pushes and pull requests to bigbang, main
and development, on pull requests to feature/**, fix/** and release/**,
on version tags, and on demand.
| Job | Checks |
|---|---|
quality |
Lint, formatting, types |
test |
The main suite |
native |
The native equity engine builds |
coverage |
Coverage against the tracked floors — it may rise, it may not fall |
database-integration |
The PostgreSQL and MySQL backends, not just SQLite |
interposer |
|
release, publish-release |
On a version tag: draft the GitHub release, then publish it |
build, build-pyoxidizer |
The distributions, on all three platforms — for a version tag or on demand only |
Coverage is a ratchet: floors are recorded in coverage-baseline.json and
re-seeded with --update only when a change genuinely raises them. An entry
leaves the baseline upwards, never downwards.
Commit messages
Conventional commits: feat(scope):, fix(scope):, test(scope):,
chore(scope):, style(ci):. The scope is the area — hud, winamax,
replayer, ci.
The body is where the reasoning goes. The history of this project is used as documentation; a commit that says what without why has thrown away the part that was hard to reconstruct.