docs(contributing): code quality rules for pull requests #484

Manually merged
github merged 1 commit from github-bot/gh-484 into gh-pr/484/base 2026-12-05 17:31:00 +00:00 AGit
Owner

@⁠Luxuride on GitHub · 2026-12-04 17:41 UTC · original
Luxuride:docs/contributing → main · +133 −0 · 1 files · 1 commits · merged 2026-12-05 17:25 UTC

What this does

Adds CONTRIBUTING.md at the root — where GitHub links it from the pull-request and new-issue pages — with the quality rules reviews apply here, so contributors meet them before opening a PR. Short by design: presentation rules, six quality checks, and how to verify locally.

  • One subject per PR, because a maintainer can cherry-pick the part they are sure about; commits per decision are welcome, and human and AI-assisted PRs are held to the same verification bar.
  • Titles that say what kind of change it is (feat(scope):, fix(scope):, perf(scope):, …), marked as a preference rather than something CI enforces, with examples of the crates and areas in the workspace.
  • Building on another PR: every PR targets main (no PRs against someone else's branch or fork), stays a draft until every item under ## Needs merged first is merged, branches from main whenever files do not depend on the dependency's commits, and strips any locally stacked commits (git rebase --onto main <their-branch>) before marking ready.
  • Six quality checks: off-by-default switch for new behaviour beyond bug fixes, docs moving with the code (docs/SETTINGS.md, docs/DIAGNOSTICS.md, run.conf.default), no unrelated cleanup or whole-tree formatting, a test that fails before the change, checking the PR queue, and cargo xtask policy / nothing fork-only.
  • Checklist state (- [x] / - N/A: / - [ ]): - [ ] signifies an open TODO (unfinished PR), - [x] marks done, and inapplicable checks are replaced with - N/A: <reason> or removed.
  • Checking it locally: accurate split between crates that build and test natively on Linux (victory-core, victory-pe, victory-formats, victory-pipeline, victory-game, victory-shader without host, xtask) and MSVC-target crates (victory, victory-loader, victory-hle, victory-gpu, victory-shader --features host) built via ./build.sh (PKG=<crate> ./build.sh test, PROFILE=diag for diagnostics-gated modules/tests).

The six checks are also written into .github/pull_request_template.md (#485, draft until this lands) in the exact same wording and order so the two stay in sync.

Checks

  • N/A: documentation only (no runtime behaviour change)
  • N/A: no VICTORY_* switch added or changed
  • No unrelated cleanup: adds CONTRIBUTING.md only
  • N/A: documentation only; checked mechanically that no VICTORY_* names appear in CONTRIBUTING.md (for xtask's switches check) and that all six checks match #485 verbatim
  • Checked the queue before opening: no open or closed PR adds a CONTRIBUTING* file; #371 adds .github/ISSUE_TEMPLATE/* and #322 adds AGENTS.md (independent)
  • Nothing that only exists in your fork: cargo xtask policy passes (asset policy: 359 files ok)

Verified

  • cargo xtask policy on docs/contributing → asset policy: 359 files ok
  • cargo test -p victory-shader → 294 passed; 0 failed; 2 ignored (confirming Linux-native shader unit tests run without host)
  • cargo check -p victory-loader --target x86_64-pc-windows-msvc → succeeded without SDK; cargo check -p victory-hle --target x86_64-pc-windows-msvc and cargo check --workspace --target x86_64-pc-windows-msvc fail without clang-cl/llvm-lib on C deps (lib.exe not found), matching the wording in "Checking it locally"
  • Mechanical Python check confirmed zero VICTORY_* strings in CONTRIBUTING.md (133 lines) and identical normalized text across all 6 checks against .github/pull_request_template.md (#485)

Cost

None: documentation only, no code, no build, no switch, no frame time.

**@⁠Luxuride** on GitHub · 2026-12-04 17:41 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/484) `Luxuride:docs/contributing` → `main` · +133 −0 · 1 files · 1 commits · merged 2026-12-05 17:25 UTC ## What this does Adds `CONTRIBUTING.md` at the root — where GitHub links it from the pull-request and new-issue pages — with the quality rules reviews apply here, so contributors meet them before opening a PR. Short by design: presentation rules, six quality checks, and how to verify locally. - **One subject per PR**, because a maintainer can cherry-pick the part they are sure about; commits per decision are welcome, and human and AI-assisted PRs are held to the same verification bar. - **Titles** that say what kind of change it is (`feat(scope):`, `fix(scope):`, `perf(scope):`, …), marked as a preference rather than something CI enforces, with examples of the crates and areas in the workspace. - **Building on another PR**: every PR targets `main` (no PRs against someone else's branch or fork), stays a **draft** until every item under `## Needs merged first` is merged, branches from `main` whenever files do not depend on the dependency's commits, and strips any locally stacked commits (`git rebase --onto main <their-branch>`) before marking ready. - **Six quality checks**: off-by-default switch for new behaviour beyond bug fixes, docs moving with the code (`docs/SETTINGS.md`, `docs/DIAGNOSTICS.md`, `run.conf.default`), no unrelated cleanup or whole-tree formatting, a test that fails before the change, checking the PR queue, and `cargo xtask policy` / nothing fork-only. - **Checklist state (`- [x]` / `- N/A:` / `- [ ]`)**: `- [ ]` signifies an open TODO (unfinished PR), `- [x]` marks done, and inapplicable checks are replaced with `- N/A: <reason>` or removed. - **Checking it locally**: accurate split between crates that build and test natively on Linux (`victory-core`, `victory-pe`, `victory-formats`, `victory-pipeline`, `victory-game`, `victory-shader` without `host`, `xtask`) and MSVC-target crates (`victory`, `victory-loader`, `victory-hle`, `victory-gpu`, `victory-shader --features host`) built via `./build.sh` (`PKG=<crate> ./build.sh test`, `PROFILE=diag` for `diagnostics`-gated modules/tests). The six checks are also written into `.github/pull_request_template.md` (#485, draft until this lands) in the exact same wording and order so the two stay in sync. ## Checks - N/A: documentation only (no runtime behaviour change) - N/A: no `VICTORY_*` switch added or changed - [x] No unrelated cleanup: adds `CONTRIBUTING.md` only - N/A: documentation only; checked mechanically that no `VICTORY_*` names appear in `CONTRIBUTING.md` (for `xtask`'s `switches` check) and that all six checks match #485 verbatim - [x] Checked the queue before opening: no open or closed PR adds a `CONTRIBUTING*` file; #371 adds `.github/ISSUE_TEMPLATE/*` and #322 adds `AGENTS.md` (independent) - [x] Nothing that only exists in your fork: `cargo xtask policy` passes (`asset policy: 359 files ok`) ## Verified - `cargo xtask policy` on `docs/contributing` → `asset policy: 359 files ok` - `cargo test -p victory-shader` → `294 passed; 0 failed; 2 ignored` (confirming Linux-native shader unit tests run without `host`) - `cargo check -p victory-loader --target x86_64-pc-windows-msvc` → succeeded without SDK; `cargo check -p victory-hle --target x86_64-pc-windows-msvc` and `cargo check --workspace --target x86_64-pc-windows-msvc` fail without `clang-cl`/`llvm-lib` on C deps (`lib.exe` not found), matching the wording in "Checking it locally" - Mechanical Python check confirmed zero `VICTORY_*` strings in `CONTRIBUTING.md` (`133` lines) and identical normalized text across all 6 checks against `.github/pull_request_template.md` (#485) ## Cost None: documentation only, no code, no build, no switch, no frame time.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 17:42:36 +00:00
github-bot force-pushed github-bot/gh-484 from 7290d85f99 to bcba4a3d32 2026-12-04 17:47:54 +00:00 Compare
github-bot force-pushed github-bot/gh-484 from bcba4a3d32 to 0460311beb 2026-12-04 17:53:09 +00:00 Compare
github-bot changed title from feat(docs): a CONTRIBUTING.md that asks for one subject per pull request to docs: a CONTRIBUTING.md with the rules this project reviews against 2026-12-04 18:31:08 +00:00
github-bot changed title from docs: a CONTRIBUTING.md with the rules this project reviews against to docs(contributing): code quality rules for pull requests 2026-12-04 18:36:32 +00:00
github-bot force-pushed github-bot/gh-484 from 0460311beb to e6b92798f6 2026-12-04 18:36:34 +00:00 Compare
github-bot force-pushed github-bot/gh-484 from e6b92798f6 to d33a93ec2f 2026-12-04 19:32:35 +00:00 Compare
github-bot force-pushed github-bot/gh-484 from d33a93ec2f to ca9268976c 2026-12-04 19:43:29 +00:00 Compare
github-bot force-pushed github-bot/gh-484 from ca9268976c to 3264dd23fb 2026-12-04 19:49:12 +00:00 Compare
github-bot changed target branch from main to gh-pr/484/base 2026-12-05 17:30:06 +00:00
github manually merged commit 3264dd23fb into gh-pr/484/base 2026-12-05 17:30:10 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.