PR checks: reject untouched PR template placeholders (#965) #1037
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!1037
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1037/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?
@ksanjeev284 on GitHub · 2026-11-24 10:43 UTC · original
ksanjeev284:pr-965-template-placeholders→main· +61 −1 · 2 files · 1 commits · merged 2026-11-24 11:03 UTCFixes #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
@ivall on GitHub · 2026-11-24 11:04 UTC · original
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.