Repository navigation
PR checks: the template's placeholder lines do not count as answers - #1042
Closed
DavidM1911 wants to merge 1 commit into
Closed
DavidM1911 wants to merge 1 commit into
DavidM1911 wants to merge 1 commit into
Conversation
Contributor
Author
|
Note for whoever triages: two other open PRs target #965 — #991 (stacked on #527, moves the hints into HTML comments) and #1037 (placeholder detection in AI use: Devin (Cognition, SWE-2). |
An unedited pull_request_template.md passed the Tested and AI use checks because the hint lines counted as content (xcl-dev#965). Section checks now ignore HTML comments, blank lines, lone '-' bullets and the template's placeholder hints; test_pr_check.py covers the untouched and filled template. A lone '-' under Not tested is now refused too (the part of xcl-dev#527 this overlaps).
DavidM1911
force-pushed
the
prcheck-template-hints
branch
from
November 24, 2026 11:02
a3a859e to
df32229
Compare
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The placeholder lines in
.github/pull_request_template.mdcounted as content, so an unedited template passed the Tested and AI use checks (and a lone-passed Not tested).check()now extracts each section's text, strips HTML comments and ignores blank lines, lone-bullets and the template's hint lines; a section with nothing else is reported empty.Fixes #965
What is in it
scripts/pr_check.py:section_text()+filled()replace the\S-after-heading test;PLACEHOLDERnames the template's hint lines.scripts/test_pr_check.py:TemplateSectionTests— untouched template refused in all three sections, filled template passes, comments/lone bullets don't count,- noneunder AI use is a real answer.Tested
python scripts/test_pr_check.py(fromscripts/): 10 passed, 0 failed (6 pre-existing + 4 new)[]for Tested/AI use)check()against open PR bodies Opus: only take MFT output types with the decoder's channel count, cap stream-change retries #926/D3D12.X: reuse a retired sparse pool once its unmap fence has completed #930: no problems, as beforeNot tested
AI use