Update check-pr-template.js

This commit is contained in:
William Harrison authored and GitHub committed 2026-08-19 11:54:35 +08:00
1 parent dc8f6e9099
commit 120bf3a8ee
1 file changed
+12 -13
+12 -13
View File
@@ -47,21 +47,21 @@ if (uncheckedRequirements.length > 0) {
); );
} }
const websitePreview = getSection( if (
"<!-- WEBSITE_PREVIEW_START -->", !getSection(
"<!-- WEBSITE_PREVIEW_END -->", "<!-- WEBSITE_PREVIEW_START -->",
); "<!-- WEBSITE_PREVIEW_END -->",
)
if (!websitePreview) { ) {
errors.push("The **Website Preview** section has not been filled out."); errors.push("The **Website Preview** section has not been filled out.");
} }
const websitePurpose = getSection( if (
"<!-- WEBSITE_PURPOSE_START -->", !getSection(
"<!-- WEBSITE_PURPOSE_END -->", "<!-- WEBSITE_PURPOSE_START -->",
); "<!-- WEBSITE_PURPOSE_END -->",
)
if (!websitePurpose) { ) {
errors.push("The **Website Purpose** section has not been filled out."); errors.push("The **Website Purpose** section has not been filled out.");
} }
@@ -69,7 +69,6 @@ if (errors.length > 0) {
console.error("PR template validation failed."); console.error("PR template validation failed.");
console.error(""); console.error("");
console.error(errors.join("\n")); console.error(errors.join("\n"));
process.exit(1); process.exit(1);
} }