From 120bf3a8eeb3cff954ee6ebda1a693d7c9af4328 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Wed, 19 Aug 2026 11:54:35 +0800 Subject: [PATCH] Update check-pr-template.js --- util/check-pr-template.js | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/util/check-pr-template.js b/util/check-pr-template.js index c05db0f978..1b20233213 100644 --- a/util/check-pr-template.js +++ b/util/check-pr-template.js @@ -47,21 +47,21 @@ if (uncheckedRequirements.length > 0) { ); } -const websitePreview = getSection( - "", - "", -); - -if (!websitePreview) { +if ( + !getSection( + "", + "", + ) +) { errors.push("The **Website Preview** section has not been filled out."); } -const websitePurpose = getSection( - "", - "", -); - -if (!websitePurpose) { +if ( + !getSection( + "", + "", + ) +) { 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); }