Verifies that the PR body contains every section header from the
repository's PULL_REQUEST_TEMPLATE.md, so the template is actually
filled in rather than deleted.
Value
NULL invisibly if no violations are found. Stops with an
error listing the missing headers otherwise.
Examples
tmpl <- tempfile()
writeLines(c("# Description", "## What changed?"), tmpl)
checkPrTemplate("# Description\n## What changed?\ndetails", tmpl)
#> PR template lint violations: OK!