Skip to content

Contributing

matthew edited this page Sep 13, 2026 · 2 revisions

Contributing

The repository's CONTRIBUTING.md is the short, authoritative version: setup, the green gate, how a pull request reaches main, the title convention, and the plugin-API bump policy. This page is the longer companion on the rules; the Contributor guide is the walkthrough — where to start for a bug, a feature or a plugin, and what is expected of the change.

How the repository is governed

  • Everything reaches main and release through a pull request — including the maintainers' own changes. The Format · Lint · Test · Build check must pass; force-pushes and deletions are blocked.
  • Only repository admins merge. Anyone can open a PR; an admin reviews and merges it. GitHub does not let an author approve their own PR, so no approving review is required — the CI check is the gate.
  • Fork-and-PR is the model for everyone without write access. Branch from main, named <type>/<short-description>.
  • The rules are kept as files in .github/rulesets/ and applied with a script, so they are reviewed like code. The reasoning is recorded in Decision: governance and versioning.

What a pull request needs

  1. A title of the form type(scope): subject — it becomes the commit subject on merge and the line in the release notes. Types: feat, fix, perf, refactor, chore, docs, test, build, ci. Subjects state the behaviour after the change, lower-case, no trailing full stop.
  2. A kind label — feature, enhancement, bug or documentation — so release notes group it.
  3. The green gate passing locally and in CI: format:check, lint, test:coverage, build, build:electron. Coverage thresholds only ever go up.
  4. The checklist in the PR template ticked honestly. It is the same list as the pre-PR checklist.

For anything larger than a small fix, open an issue first so the approach is agreed before the work is done. Issues labelled good first issue and help wanted are curated starting points.

Conventions, in one paragraph

TypeScript is strict: explicit access modifiers, every parameter, return and local typed, no any, TSDoc on every member including private ones. Angular is standalone, signal-driven, OnPush, with inject() and built-in control flow, and feature templates use the shared control atoms rather than raw form elements. shared never names a feature; a feature imports only @shared and @features; the renderer never touches Node except through the Bridge. Comments say why, not what. The full text is on Conventions.

Changing the plugin contract

src/shared/api/plugin-manifest.ts is what every plugin manifest is written against, and PLUGIN_API_VERSION says which contract a build implements. A spec fingerprints the contract's shape and fails when it changes without the version moving, so the two cannot drift. Bump minor when the contract only grows (a new optional field, a new contribution point, a new provisioning kind) — every manifest written against the previous version still validates and still means what it meant. Bump major when an existing field changes meaning, is removed or becomes required. Record the reason in the comment block above the constant. See Plugins.

AI-assisted contributions

Studio is an agentic development environment and its own history is largely agent-written. Pull requests produced with an agent are welcome; no disclosure is required. The rule is ownership: the person who opens the PR has read the change, run the green gate, and can answer for every line in review. Agents working on the repository should start from docs/agents.md and this wiki.

Reporting problems

Bugs and feature requests go through the issue forms; questions to Discussions; vulnerabilities through private vulnerability reporting, never a public issue. Everyone taking part is expected to follow the Code of Conduct.

Licence

Studio is MIT-licensed. Contributions are accepted under the same licence; there is no contributor licence agreement and no sign-off requirement.

Clone this wiki locally