Contributing
On this page
Contributions are welcome. This is a small development fork, so please open an issue before you start on anything larger than a fix.
CONTRIBUTING.md is inherited from upstream and its development parts apply. In short:
- Use Conventional Commits.
- Run the linters before committing, and run tests through
mage test:*(plaingo testdoes not work). Permission paths need a positive and a negative test. - Every new API route goes on
/api/v2, and the frontend reaches the API only through the generated client. See API.md. - New user-facing strings go into
frontend/src/i18n/lang/en.jsonorpkg/i18n/lang/en.json. - Open an issue before starting a larger feature.
The development commands and conventions are in .agents/docs/ and in Architecture.
Rules specific to the fork #
The guide for contributors and agents is .agents/docs/fork.md in the repository. The short version:
- Stay mergeable. The fork must always be able to merge upstream's
main. Put fork code in fork-owned packages and files, touch upstream-owned files as little as possible, and list every upstream-owned file a change touched. - Translations.
en.jsonandtr-TR.jsonare kept complete and identical in keys, by hand, in the same commit as the change. - Documentation. A change that alters behaviour updates the module page in
docs/modules/,API.mdwhen the API changed,config-raw.jsonfor configuration keys, and the log in the roadmap. - Databases. Raw SQL and migrations must run on the minimum database versions that upstream documents. Test on SQLite, PostgreSQL and MySQL before merging anything that touches models, migrations or SQL.
This website #
The site is generated from the Markdown documents of the repository by a small script, so a documentation fix is a Markdown edit. See site/README.md for the one command that regenerates docs/.