PR checks: the template's placeholder lines do not count as answers #1035
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1042"
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?
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T10:48:02Z.
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 #926/#930: no problems, as beforeNot tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T10:56:21Z.
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).
Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T11:04:34Z.
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