Skip to content

Add a How to test section to the PR template - #2238

Merged
felladrin merged 1 commit into
mainfrom
claude/pr-template-how-to-test
Jul 28, 2026
Merged

Add a How to test section to the PR template#2238
felladrin merged 1 commit into
mainfrom
claude/pr-template-how-to-test

Conversation

@felladrin

Copy link
Copy Markdown
Owner

Description

Adds a ## How to test section to the PR template, and promotes the collapsed security/performance/breaking-changes block to a normal section.

Currently the checklist asserts that tests passed, but the template has nowhere for the steps a reviewer follows to see that for themselves, so PRs keep inventing the section by hand (#2235 did).

On the fold: collapsing security, performance and breaking changes into one <details> hides the content that needs the most scrutiny. It also pushes an author to cover those topics twice when they are central rather than incidental, once as a real section and once inside the fold, because leaving the fold empty reads as negligent while burying the content there reads as evasive.

Net change: one section added, one fold removed. The template stays short, which is the thing worth protecting about it.

The comment under ## Description now also mentions ### subsections, since a large PR needs its own structure inside that one prose slot.

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Other (refactor, build, chore)

How to test

This PR's own body uses the proposed structure, so it doubles as the preview.

A template only takes effect for PRs opened after it merges, so there is no way to exercise the real thing beforehand. What I did check:

  1. npm run lint passes, including scripts/documentation-validator.cjs, which validates .github/PULL_REQUEST_TEMPLATE.md.
  2. The rendered markdown has no broken structure: five ## sections plus HTML comments, no stray <details> tags left behind.

Checklist

  • npm run lint passes
  • Tests pass (npm run test), with tests added where it made sense

No tests: the change is a markdown template with no code path to cover.

Security, performance, or breaking changes

None. Nothing here affects the app, the build, or contributors' existing branches. Open PRs keep whatever body they already have.

The template asserts in its checklist that tests passed, but had nowhere
for the steps a reviewer follows to see it themselves, so PRs kept
inventing the section by hand.

Also promotes the collapsed security/performance/breaking-changes block to
a normal section. Folding it hid exactly the content that needs the most
scrutiny, and on a PR where performance is the headline it forced the
author to cover the topic twice: once in the body and once in the fold.
@felladrin
felladrin marked this pull request as ready for review July 28, 2026 17:50
@felladrin
felladrin merged commit dd94809 into main Jul 28, 2026
6 of 7 checks passed
@felladrin
felladrin deleted the claude/pr-template-how-to-test branch July 28, 2026 17:50
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.

1 participant