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(
"<!-- WEBSITE_PREVIEW_START -->",
"<!-- WEBSITE_PREVIEW_END -->",
);
if (!websitePreview) {
if (
!getSection(
"<!-- WEBSITE_PREVIEW_START -->",
"<!-- WEBSITE_PREVIEW_END -->",
)
) {
errors.push("The **Website Preview** section has not been filled out.");
}
const websitePurpose = getSection(
"<!-- WEBSITE_PURPOSE_START -->",
"<!-- WEBSITE_PURPOSE_END -->",
);
if (!websitePurpose) {
if (
!getSection(
"<!-- WEBSITE_PURPOSE_START -->",
"<!-- WEBSITE_PURPOSE_END -->",
)
) {
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("");
console.error(errors.join("\n"));
process.exit(1);
}