Skip to content

QA: add pull request template with asset policy and safety checklist - #543

Closed
pushkarreddyy wants to merge 2 commits into
Marvisak:mainfrom
pushkarreddyy:qa/pr-template-checklist
Closed

pushkarreddyy wants to merge 2 commits into
Marvisak:mainfrom
pushkarreddyy:qa/pr-template-checklist

Conversation

@pushkarreddyy

Copy link
Copy Markdown
Contributor

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

  • Added .github/pull_request_template.md.
  • Includes structured sections for Description, Motivation & Context, Quality Assurance, and mandatory Asset Policy & Safety compliance checklists.

No game files used.

@pushkarreddyy

Copy link
Copy Markdown
Contributor Author

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

  • Added .github/pull_request_template.md.
  • Sections:
    1. Description & Context
    2. Quality Assurance & Verification (tests and toolchain)
    3. Mandatory Asset Policy & Safety Compliance Checklist:
      • Rule Possible Fixes #1: No proprietary game assets, executables, binaries, or long encoded runs.
      • Passes cargo xtask policy.
      • Explicit // SAFETY: comments on all unsafe blocks.

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(+)

  • Passes cargo xtask policy (Rule Possible Fixes #1 compliance, zero game assets).
  • Formatted with rustfmt --edition 2024.

@ghost ghost mentioned this pull request Nov 24, 2026
@pushkarreddyy

Copy link
Copy Markdown
Contributor Author

Call for Maintainer Review & Merge

Infrastructure and quality assurance improvement:

  • Enforces Rule Possible Fixes #1 asset policy and code style consistency across the repository.
  • Non-breaking, zero dependencies on game files.
  • Helps maintainers manage the influx of incoming PRs by automating gates.

@Marvisak: Ready for review and merge when convenient!

@mercuryVM mercuryVM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md is only a Markdown template GitHub pre-fills. No workflow and nothing executable.
  • One wording fix: cargo fmt --edition 2024 is not a cargo fmt flag, which takes rustfmt options after --. The workspace edition is already 2024 in Cargo.toml (and in rustfmt.toml if #547 lands), so the checkbox should just say "Formatted with cargo fmt". As written, it suggests a command that fails.
  • Since cargo fmt --all --check already fails on main, "formatted" probably needs to mean "the changed lines". Saying so would keep contributors from reformatting untouched files.

AI-assisted (Claude Code).

@pushkarreddyy

Copy link
Copy Markdown
Contributor Author

Thanks for the suggestion @mercuryVM!

Updated the checkbox in commit c9e5db8 to:
- [ ] Formatted changed lines with cargo fmt

This avoids suggesting an invalid CLI flag and clarifies that only changed lines need formatting.

@mercuryVM mercuryVM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-checked c9e5db8 (read only, template text). The checkbox now says "Formatted changed lines with cargo fmt", which fixes the command cargo rejects and matches the reality that main isn't fully formatted. Approving.

AI-assisted (Claude Code).

mercuryVM added a commit to mercuryVM/VIctory that referenced this pull request Nov 24, 2026
…set policy and safety checklist

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good template — it encodes the repo's actual rules rather than generic boilerplate: the asset-policy check (cargo xtask policy), the // SAFETY: requirement for unsafe blocks, and the toolchain verification step all match how this workspace operates. The HTML-comment hints keep it usable for both humans and agents.

@Marvisak

Copy link
Copy Markdown
Owner

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.

@Marvisak Marvisak closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants