A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
CONTRIBUTING.md: the changelog paths, what rule_ids.py checks, and when a PR is merged automatically (#2854)
Beri9ebd6f191be1
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 5257a7c8b..a12dc55f4 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -63,8 +63,8 @@ Follow [docs/dev-setup.md](docs/dev-setup.md). In short:`"$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -projectPath unity -buildTarget OSXUniversal -runTests -testPlatform EditMode -testResults "$PWD/unity-editmode.xml" -logFile unity-tests.log`. There must be 0 `warning CS` in the log.4. **Text the player sees** has no internal ids, gives dates as "15 May 1948", and shows money as "IL 1.2m" or "$1.2m". The tests enforce this.5. **Keep the pull request focused:** one change per PR, and no unrelated refactors.-6. **Changelog.** If you change `sim/`, `content/`, `translations/` or `unity/` (tests excepted), add a new file `changelog.d/<branch-or-issue>.md` with your entry as a bullet ([changelog.d/README.md](changelog.d/README.md)); fragments never conflict with other pull requests. A line under `## [Unreleased]` in [CHANGELOG.md](CHANGELOG.md) still works. CI's `Changelog` job checks it; the maintainer can add the `no-changelog` label to a change no player would notice.-7. **Rule IDs.** A rule that has an ID (`R-ECON-014`, defined in `docs/rules/`, see [docs/rules/README.md](docs/rules/README.md)) is cited by that ID in the test that checks it (`// R-ECON-014`), in YAML comments that depend on it, and in the PR body ("implements R-ECON-014"). `uv run scripts/oss/rule_ids.py` fails on a rule with no citing test and on a citation of an ID that does not exist. It reads repository files only, so it cannot check the PR body.+6. **Changelog.** If you change `sim/`, `content/`, `translations/`, `unity/Assets/`, `unity/ProjectSettings/` or `unity/Packages/` (tests excepted, and `translations/README.md`), add a new file `changelog.d/<branch-or-issue>.md` with your entry as a bullet ([changelog.d/README.md](changelog.d/README.md)); fragments never conflict with other pull requests. A line under `## [Unreleased]` in [CHANGELOG.md](CHANGELOG.md) still works. CI's `Changelog` job checks it; the maintainer can add the `no-changelog` label to a change no player would notice.+7. **Rule IDs.** A rule that has an ID (`R-ECON-014`, defined in `docs/rules/`, see [docs/rules/README.md](docs/rules/README.md)) is cited by that ID in the test that checks it (`// R-ECON-014`), in YAML comments that depend on it, and in the PR body ("implements R-ECON-014"). `uv run scripts/oss/rule_ids.py` fails on a rule with no citing test (it counts citations only in `sim/Statecraft.Sim.Tests/`) and on a citation of an ID that does not exist (it looks for cited IDs in `sim/**/*.cs`, `unity/Assets/**/*.cs` and `content/**/*.yaml`). It reads repository files only, so it cannot check the PR body.8. **Provenance.** Every new image, video, font, audio, 3D-model, map-data, PDF or Unity-package file, and every file Git treats as binary, must be covered by a matching glob rule in [ASSETS.yaml](ASSETS.yaml) or [ASSETS.portraits.yaml](ASSETS.portraits.yaml) (the generated portrait records; the check reads the rules of both files together). CI's `Repo policy` job fails on a file with no matching rule.9. **Roadmap status.** If your PR finishes a Phase 1 PR or a whole phase of [#374](https://github.com/eyalgolan/statecraft-israel/issues/374), update the Roadmap table in [README.md](README.md#roadmap) and the same table in [README.he.md](README.he.md), and tick the item in #374 if you can (otherwise ask the maintainer in the PR). The Phase 1 count must match in both files; `test_readme.py` checks it.@@ -105,7 +105,7 @@ AI-assisted work is welcome. Say so in the pull request: which parts, and how yo- Base your branch on `main`. History on `main` is protected, so no force-pushes.- In the description, say what changed and why. Paste the test commands you ran and their output; a description of the output doesn't count.- **Visual changes:** matched before/after screenshots are required in the PR description for any change a player can see (models, the map, characters, the UI or the website). Keep the game state, camera and zoom the same; match resolution and lighting when relevant. Label the changed area and show important visual side effects. For changes with no visible effect, explain why screenshots are not applicable, and add a short video when motion helps review. Prefer GitHub PR attachments that reviewers can open over private Library links or committing review-only captures to the repository.-- The maintainer reviews every PR (`.github/CODEOWNERS`). Once the maintainer approves your latest commit and every check on it has passed, `.github/workflows/merge-approved.yml` squash-merges it within about ten minutes. A new push needs a new approval.+- The maintainer reviews every PR (`.github/CODEOWNERS`). Once the maintainer approves your latest commit and the required checks on it have passed (`Sim (dotnet test)`, `Tools (pytest)`, `Repo policy`, `Changelog`), `.github/workflows/merge-approved.yml` squash-merges it within about ten minutes, as long as the PR is not a draft, has no merge conflict and, unless the maintainer opened it, has the licence line ticked ("[x] I contribute this under the terms in"). A new push needs a new approval.## What CI runs