Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
docs: commit message rules in the pull request template
Olcay Seygan91fb66a62dd2
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdnew file mode 100644index 000000000..57b6a495c--- /dev/null+++ b/.github/pull_request_template.md@@ -0,0 +1,13 @@+<!--+Commit messages are checked on every pull request, and a failing check blocks the merge.+Each commit's first line: type(scope): summary, lowercase, no full stop, under 72 characters.+Types: feat, fix, perf, build, refactor, test, docs (docs may drop the scope).+No merge commits: update your branch with `git rebase main`, then force push.+Full rules: CONTRIBUTING.md.+-->++What it changes for a player:++Anything it removes or reverses from CHANGELOG.md:++Tested with (`build.bat Release test`, a replay, a match):diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 1c3b66703..5fc26111e 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -14,7 +14,8 @@ feature that disappears without a word is the fastest way to have a pull request## Commit messages-English, Conventional Commits, imperative, and under 72 characters on the first line:+English, Conventional Commits, imperative, lowercase, no full stop at the end, and under 72+characters on the first line:```type(scope): summary@@ -22,7 +23,9 @@ type(scope): summaryThe type is one of `feat`, `fix`, `perf`, `build`, `refactor`, `docs` or `test`. The scope is thelibrary or target the change lives in, such as `gameclient`, `gameengine`, `w3ddevice`, `ww3d2`,-`wwlib` or `cmake`. A `docs` commit may leave the scope out.+`wwlib` or `cmake`. A `docs` commit may leave the scope out. There is no `chore`, `wip` or `revert`:+squash a work-in-progress commit into the one it belongs to, and undo a mistake by fixing it in a+new commit.```fix(gameclient): keep the minimap drag alive while the arrow keys scroll@@ -37,13 +40,9 @@ request, so bring your branch up to date with `git rebase main` rather than merg## Before you open it-Build Release and run the tests. The build is x64 only, and `-A Win32` stops at configure.--```console-cmake -S GeneralsMD/Code -B build -G "Visual Studio 17 2022" -A x64-cmake --build build --config Release-ctest --test-dir build -C Release --output-on-failure-```+Build Release and run the tests. One command does both on each platform: `build.bat Release test`+on Windows, `./build-macos.sh Release test` on a Mac and `./build-linux.sh Release test` on Linux.+The build is 64-bit only, and `-A Win32` stops at configure.A change to how the game behaves leaves a test behind that fails without it. Put the fix back tothe old behaviour once and watch the test go red before you trust it.