cardinal

Repository rules

Branches, pull requests, the changelog and the scripts that enforce them.

These rules apply to everyone who changes the Cardinal repo, people and agents alike.

Branches

BranchHolds
mainIntegrated development work
stagingWhat runs on the staging environment
productionWhat runs in production

Nobody commits or pushes to these three directly. They change only through a pull request, merged as a merge commit or a rebase merge.

feature branch → main → staging → production

Make a change

Branch off the target: git switch -c feat/short-name main.

Commit, and add an entry under ## [Unreleased] in CHANGELOG.md, in Added, Changed, Fixed or Removed.

Push and open a pull request into main.

Merge once the changelog check passes. The rust, elixir, frontend, docs and e2e jobs run only on pull requests into staging and production, so a promotion merges only when they pass.

Every pull request into a protected branch must change CHANGELOG.md. A promotion pull request passes as long as the promoted commits carry changelog entries.

Enforcement

LayerDoesSet up with
Git hooksRefuse commits, local merge commits and pushes on the three branchesscripts/setup-hooks.sh, once per clone
GitHub Actionschangelog.yml fails a pull request that does not touch CHANGELOG.md. ci.yml builds and testsNothing
Branch protectionRequires a pull request and the checks, applies to admins, blocks force pushes and deletionscripts/protect-branches.sh, by a repo admin with gh

git commit --no-verify skips the hooks. Branch protection on GitHub is what enforces the rules. On a private repo it needs a paid GitHub plan.

Licence

Cardinal is proprietary. Package manifests must not declare an open-source licence or allow publishing:

ManifestRequired
Cargo.tomlpublish = false, license-file = "LICENSE"
package.json"private": true, "license": "UNLICENSED"
mix.exsNo Hex package block

A third-party dependency must have a licence that allows use in closed-source commercial software.

See Releases for cutting a version.

On this page