Skip to content

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.
PrefixUse 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.

sh
cd website
npm install
npm run dev      # http://localhost:5173, reloads as you edit DOCS
npm run build    # writes website/.vitepress/dist

A 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 ​

  1. Set the new version in project(Gamma VERSION ...) in CMakeLists.txt, and move the Unreleased notes in CHANGELOG.md under that version, in a [CHORE] commit on main. python3 dev/Changelog.py lists the [MAJOR], [MINOR] and [FIX] commits since the last tag, grouped under those headings with their short hashes, to check the notes against; --since and --until take other tags or commits, --version names the heading, and --all adds the [DOCS], [CHORE] and unprefixed commits.
  2. Tag that commit with the version and push the tag: git tag v0.2.0 and git 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.

Apache License 2.0