PR checks: an untouched PR template passes the Tested and AI use checks #965

Closed
opened 2026-11-26 04:38:31 +00:00 by github-bot · 1 comment
Owner

@⁠Conrage on GitHub · 2026-11-24 09:37 UTC · original

The placeholder lines in .github/pull_request_template.md count as content:

  • under Tested: - hardware (GPU + driver, CPU), Rust version, debug / release: and the cargo test … N passed … line
  • under AI use: - none / tool and model, and what it did

On main, check() on the unedited template returns no problems for a docs-only PR: the \S in the section regex (pr_check.py:57) matches the placeholder text, and the lone - under Not tested too.

#527 fixes empty sections (a lone - no longer counts), so on its branch only Not tested is reported. Tested and AI use still pass with the placeholder text.

Repro (run locally on main and on #527's branch):

from pr_check import check
body = open(".github/pull_request_template.md").read()
print(check(body, "abc1234def", [("README.md", "modified", False, lambda: 10)], lambda s: True))
# main:  []
# #527:  ['the **Not tested** section is missing or empty']

Suggested fix: move the hints into HTML comments (#527 already strips comments), or treat a section whose only text is the template's placeholder line as empty.

AI use: found, checked and written up by Claude Code (Claude Opus 5.5) at my request.

**@⁠Conrage** on GitHub · 2026-11-24 09:37 UTC · [original](https://github.com/xcl-dev/xcl/issues/965) The placeholder lines in `.github/pull_request_template.md` count as content: - under **Tested**: `- hardware (GPU + driver, CPU), Rust version, debug / release:` and the `cargo test … N passed …` line - under **AI use**: `- none / tool and model, and what it did` On main, `check()` on the unedited template returns no problems for a docs-only PR: the `\S` in the section regex ([pr_check.py:57](https://github.com/ivall/xcl/blob/077ce40/scripts/pr_check.py#L57)) matches the placeholder text, and the lone `-` under **Not tested** too. #527 fixes empty sections (a lone `-` no longer counts), so on its branch only **Not tested** is reported. **Tested** and **AI use** still pass with the placeholder text. **Repro (run locally on main and on #527's branch):** ```python from pr_check import check body = open(".github/pull_request_template.md").read() print(check(body, "abc1234def", [("README.md", "modified", False, lambda: 10)], lambda s: True)) # main: [] # #527: ['the **Not tested** section is missing or empty'] ``` **Suggested fix:** move the hints into HTML comments (#527 already strips comments), or treat a section whose only text is the template's placeholder line as empty. **AI use:** found, checked and written up by Claude Code (Claude Opus 5.5) at my request.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:38:31 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-24 11:04 UTC · original

Fixed by #1037 (dc6a283): the template's placeholder lines, comments and lone bullets no longer count as an answer, so an untouched template fails Tested, Not tested and AI use.

**@⁠ivall** on GitHub · 2026-11-24 11:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/965#issuecomment-7129621982) Fixed by #1037 (dc6a283): the template's placeholder lines, comments and lone bullets no longer count as an answer, so an untouched template fails **Tested**, **Not tested** and **AI use**.
This discussion has been locked. Commenting is limited to contributors.
No description provided.