QA: add pull request template with asset policy and safety checklist #543
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/543"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T04:41:56Z.
Motivation
With a high volume of community contributions and pull requests, establishing a standardized Pull Request template is critical for Quality Assurance and maintaining project integrity.
Crucially, every contributor must be explicitly reminded and asked to certify compliance with Rule #1 (Asset Policy), code formatting with Rust 2024, and
// SAFETY:explanations for all unsafe blocks.Solution
.github/pull_request_template.md.No game files used.
Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T04:51:52Z.
### Technical Verification & Implementation Details
Context & Architecture
With a high volume of community contributions, establishing a standardized Pull Request template is critical for Quality Assurance and maintaining project integrity. Contributors must be explicitly prompted to verify compliance with Rule #1, code formatting, and safety comments.
Changes & Template Structure
.github/pull_request_template.md.cargo xtask policy.// SAFETY:comments on allunsafeblocks.Git Log Line & Verification
ext 83447df QA: add pull request template with asset policy and safety checklist .github/pull_request_template.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)cargo xtask policy(Rule #1 compliance, zero game assets).rustfmt --edition 2024.Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T06:24:39Z.
### Call for Maintainer Review & Merge
Infrastructure and quality assurance improvement:
@Marvisak: Ready for review and merge when convenient!
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T07:27:00Z.
Review: COMMENTED
Read only, not built: a PR template file. The workspace builds and tests at
83447df(264 passed, 0 failed) on Windows 11, RTX 5070, MSVC..github/pull_request_template.mdis only a Markdown template GitHub pre-fills. No workflow and nothing executable.cargo fmt --edition 2024is not acargo fmtflag, which takes rustfmt options after--. The workspace edition is already 2024 inCargo.toml(and inrustfmt.tomlif #547 lands), so the checkbox should just say "Formatted withcargo fmt". As written, it suggests a command that fails.cargo fmt --all --checkalready fails on main, "formatted" probably needs to mean "the changed lines". Saying so would keep contributors from reformatting untouched files.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T07:31:10Z.
Thanks for the suggestion @mercuryVM!
Updated the checkbox in commit
c9e5db8to:- [ ] Formatted changed lines withcargo fmtThis avoids suggesting an invalid CLI flag and clarifies that only changed lines need formatting.
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T09:20:08Z.
Review: APPROVED
Re-checked
c9e5db8(read only, template text). The checkbox now says "Formatted changed lines withcargo fmt", which fixes the commandcargorejects and matches the reality thatmainisn't fully formatted. Approving.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T12:46:09Z.
Review: APPROVED
Good template — it encodes the repo's actual rules rather than generic boilerplate: the asset-policy check (
cargo xtask policy), the// SAFETY:requirement forunsafeblocks, and the toolchain verification step all match how this workspace operates. The HTML-comment hints keep it usable for both humans and agents.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:24:33Z.
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #113. A PR template only; #113 carries a shorter one that also asks what was tested and whether an AI wrote the change.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed