Contributing¶
Branch flow¶
feature/*
-> pull request into develop
-> release/1.0.0 for beta, RC, and final stabilization
-> merge finalized release into master and develop
-> v1.0.0[-prerelease] tags build GitHub releases
Keep master stable. Branch bug fixes from the line being fixed and merge release-specific fixes
back into develop. Branch urgent fixes to published releases from master. See the complete
Release process before creating release tags.
Before opening a PR¶
At minimum run the checks relevant to your change:
For Android/platform changes, run Android device tests where applicable. For server changes, run the relevant Docker smoke test.
Architecture changes¶
If module dependencies change:
Commit regenerated docs/generated/ output; do not hand-edit it.
Architecture and naming changes¶
Follow the project layer conventions:
- data representation:
NameDto/toNameDto(); - domain representation:
Name/toName(); - presentation representation:
NameUi/toNameUi(); - ViewModel -> use case -> repository contract;
- no use-case-to-use-case, repository-to-repository/use-case, or datasource-to-repository calls.
See Clean architecture and Coding style.
Chat changes¶
Read Chats architecture first. Keep Direct and Group responsibilities separate. Keep attachment source/blob ownership in :feature:attachments and reuse the shared :core:base MessagePartDto -> MessagePart -> MessagePartUi hierarchy.
Documentation changes¶
Update the closest handwritten document when behavior/configuration changes. Keep links relative so MkDocs and GitHub rendering both work.
Documentation location¶
Keep project documentation centralized:
README.mdat the repository root is the only project Markdown documentation outsidedocs/;server/secrets/placeholder.mdis a non-documentation placeholder whose only purpose is to keep the empty secrets directory tracked by Git;- all architecture, feature, server, operations, security, API and development documentation belongs under
docs/; - do not add module-local
README.mdorARCHITECTURE.mdfiles; - update
mkdocs.ymlwhen adding a user-facing documentation page; - keep generated architecture reference under
docs/generated/and regenerate it with the architecture-report tasks.
This prevents duplicated feature/server documentation from drifting away from the central source of truth.