gameplane / docs
DEVELOP

Contributing

Follow the dev loop, the design-first workflow, and code style standards before opening a pull request.

Local Developmentv0.42 MIN

Your first PR

New to the repo? The Your first PR section of the contributing guide on GitHub lists, for each kind of change, the folder that owns it, the one compile check to run locally, and how long CI takes.

Dev loop

make dev-up spins up a local kind cluster with images and the Helm chart already installed.

DEV LOOP
make dev-up      # kind cluster + images + Helm chart
make web-dev     # Vite dev server, proxied to the API

Design first

UI changes start in design.fig — the designed screens are the source of truth — then get translated to React.

Code standards

  • Indentation: tabs in Go, 2 spaces elsewhere (YAML, JSON, TypeScript, Markdown). LF line endings everywhere.
  • Go: gofmt, go vet, golangci-lint. Errors are wrapped with %w to preserve the cause chain.
  • Linting: fix the underlying issue; do not add inline suppression directives (//nolint:, // eslint-disable). The few centralized exemptions live in .golangci.yml.
  • TypeScript: strict mode, ESLint + Prettier, and no any without a justification comment.
  • Comments: write one only when the why is non-obvious (a hidden invariant, workaround, or constraint a reader would ask about).

Submitting a change

  1. Fork the repository and create a feature branch.
  2. Run only quick compile checks locally (go build ./..., npx tsc --noEmit). The full test and lint suites run on CI, where they are gated; see Testing, coverage, and E2E.
  3. If you change .github/workflows/ or .github/actions/, run the static workflow checks before pushing: actionlint .github/workflows/*.yaml and zizmor .github/workflows/ .github/actions/. Pin every external action to a full 40-character commit SHA with a # vX.Y.Z comment (Dependabot keeps the pins current), and give every job an explicit least-privilege permissions block and a timeout-minutes.
  4. For UI work, include the design.fig screen IDs you touched in the PR description.
  5. Sign your commits (git commit -s).
  6. Check that the PR carries at least one type: label and one area: label (CodeRabbit applies them; you verify them). Breaking CRD, API or chart-value changes also take breaking.

Translations

Language packs live in i18n/locales/<tag>/ and need no code changes. A pack is two JSON files, and a language appears in the dashboard picker once at least 80% of its messages are translated. See Languages & Translations for how users and admins see languages, and the translating guide on GitHub for the folder layout, message rules and checker. A PR that touches only i18n/locales/** and has no type prefix in its title is labelled type: docs and area: shared.

Game modules and submodules

Game-module changes belong in the separate GameplanePanel/module repository, vendored here as the modules/ submodule. Open the module PR there; once it merges, bump the submodule pointer in a follow-up PR.

The split components mcp-server/, audit-syslog-bridge/, tunnel/ and capture-sidecar/ also live in their own repositories (GameplanePanel/mcp, GameplanePanel/audit-syslog-bridge, GameplanePanel/tunnel and GameplanePanel/capture-sidecar). Open the change as a PR there, then bump the pointer in a follow-up PR here.

.gitmodules points all submodules (modules/, website/ and the component submodules) at the upstream GitHub URLs, so a fork clones them without forking them too. To work on your own fork of a submodule, repoint it locally and don’t commit the change:

git submodule set-url modules https://github.com/<you>/module.git

The full contribution guide, including per-component test commands and the release process, is in contributing.md on GitHub. Release signing is covered in CI, releases, and signing.