Contributing
Code style, naming and build commands are in AGENTS.md. They apply to people as well as agents.
Commits
- Make one commit per system or logical change. Do not combine unrelated work into one large commit.
- Format and lint the files you changed before committing.
- Write the title as
[PREFIX] Summary, for example[FIX] Stop child events firing after Destroy. - Add a description only when the title is not enough. Say what changed and why, and get to the point.
| Prefix | Use for |
|---|---|
[FIX] | A bug fix. |
[CHORE] | Work that does not change behaviour: refactoring, build, tooling, formatting. |
[DOCS] | Documentation only. |
[MINOR] | A small feature or addition. |
[MAJOR] | A new system or a breaking change. |
If a commit fits more than one prefix, use the one for its biggest change.
Pull Requests
- Keep pull requests small and about one thing. Split large work into several pull requests.
- Describe what the pull request changes and how you tested it.
- Make sure the project builds and the tests pass before asking for review.
Docs website
The docs in DOCS are also a website, built with VitePress from website/. Pages stay plain Markdown that reads well on GitHub; the site adds the sidebar, search and Gama highlighting.
cd website
npm install
npm run dev # http://localhost:5173, reloads as you edit DOCS
npm run build # writes website/.vitepress/distA new page needs a line in the sidebar in website/.vitepress/config.mts and in the docs index. Cloudflare Pages builds the site from main with the root directory website, the build command npm ci && npm run build and the output directory .vitepress/dist.
Releases
- Set the new version in
project(Gamma VERSION ...)inCMakeLists.txt, and move theUnreleasednotes inCHANGELOG.mdunder that version, in a[CHORE]commit onmain.python3 dev/Changelog.pylists the[MAJOR],[MINOR]and[FIX]commits since the last tag, grouped under those headings with their short hashes, to check the notes against;--sinceand--untiltake other tags or commits,--versionnames the heading, and--alladds the[DOCS],[CHORE]and unprefixed commits. - Tag that commit with the version and push the tag:
git tag v0.2.0andgit push origin v0.2.0.
The Release workflow then checks the tag matches the project version, builds and tests Gamma for Windows (one static executable), Linux, and Linux without a window (headless), and attaches each as an archive with its SHA-256 digest to a draft release. It publishes the release once every build is attached, with notes generated from the merged pull requests.