mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-20 02:17:34 +00:00
Update check-pr-template.js
This commit is contained in:
1 parent
dc8f6e9099
commit
120bf3a8ee
1 file changed
+12
-13
+12
-13
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user