PR checks: reject untouched PR template placeholders (#965) #1030
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1037"
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 ksanjeev284 on 2026-11-24T10:43:55Z.
Fixes #965.
Previously
scripts/pr_check.pychecked required sections with\*\*<section>\*\*\s*\n\s*\S, so an untouched.github/pull_request_template.mdpassed Tested, Not tested, and AI use because the template's placeholder lines and bare-bullet matched\S.What is in it
scripts/pr_check.py: addsection_has_content()to extract each required section up to the next template heading, strip HTML comments and leading bullet markers, and ignore the verbatim placeholder lines from.github/pull_request_template.md.scripts/test_pr_check.py: addTemplatePlaceholderTestsverifying that the untouched.github/pull_request_template.mdfails all three required sections, bare bullets/comments alone fail, and sections with real content pass.Tested
python -m unittest discover -s scripts -v: 8 passed, 0 failedsection_has_content()against the 20 most recently merged PRs onivall/xcl: 0 false positives (only #771 lacked an**AI use**heading altogether).python scripts/pr_check.py --localon this PR's description and changed files:description okRegression run
scripts/pr_check.pyandscripts/test_pr_check.py(no files undercrates/xcl/src/).Not tested
pull_request_targetexecution (usesmain's copy ofscripts/pr_check.pyuntil merged).AI use
Imported from ivall/xcl. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T10:44:06Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T11:04:31Z.
Merged in
dc6a283– thanks. It conflicted with #995'sbuilds_runtime()next toruntime(); both are kept. Checked on the merged tree:python scripts/test_pr_check.py9 tests OK; the untouched template gets all three section problems; and the new section check gives the same answer as the old one on the last 40 PR descriptions except #1039, which is an untouched template.upstream-sync referenced this pull request2026-11-25 06:04:27 +00:00