PR checks: the template's placeholder lines do not count as answers #1042
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1042
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1042/head"
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?
@DavidM1911 on GitHub · 2026-11-24 10:48 UTC · original
DavidM1911:prcheck-template-hints→main· +59 −1 · 2 files · 1 commits · closed without mergingThe 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 #926/#930: no problems, as beforeNot tested
AI use
@DavidM1911 on GitHub · 2026-11-24 10:56 UTC · original
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
check(), also addsscripts/test_pr_check.py). This one is independent of #527 and covers the lone-under Not tested too; pick whichever fits.AI use: Devin (Cognition, SWE-2).
@ivall on GitHub · 2026-11-24 11:04 UTC · original
Thanks. #965 is fixed by #1037 (merged in
dc6a283), which was opened first. This branch is also based on an oldmain(97 commits behind) and addsscripts/test_pr_check.pyas a new file, which would replace the tests there now. Closing as a duplicate.Pull request closed