summaryrefslogtreecommitdiffhomepage
path: root/scripts/validate_apps.js
diff options
context:
space:
mode:
authorKasra Bigdeli <[email protected]>2020-08-16 09:54:49 -0400
committerKasra Bigdeli <[email protected]>2020-08-16 09:54:49 -0400
commit83c86c07c5f87c4c19b5328ba377b35f35fda25d (patch)
treeee40903cc075f515266986b2d52a9636ae6a50d9 /scripts/validate_apps.js
parent090e2473bd25a32c39560ddf05ca14c9e0225569 (diff)
downloadcaprover-one-click-apps-83c86c07c5f87c4c19b5328ba377b35f35fda25d.tar.gz
caprover-one-click-apps-83c86c07c5f87c4c19b5328ba377b35f35fda25d.zip
Enforcing max 200 char for description
Diffstat (limited to 'scripts/validate_apps.js')
-rw-r--r--scripts/validate_apps.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/validate_apps.js b/scripts/validate_apps.js
index 5923fac..425caf1 100644
--- a/scripts/validate_apps.js
+++ b/scripts/validate_apps.js
@@ -41,6 +41,10 @@
throw new Error(`Cannot find description for ${apps[i]}`);
}
+ if (content.caproverOneClickApp.description.length > 200) {
+ throw new Error(`Description too long for ${apps[i]} - keep it below 200 chars`);
+ }
+
if (!content.caproverOneClickApp.instructions ||
!content.caproverOneClickApp.instructions.start ||
!content.caproverOneClickApp.instructions.end) {
@@ -106,6 +110,9 @@
if (!content.description) {
throw new Error(`Cannot find description for ${apps[i]}`);
}
+ if (content.description.length > 200) {
+ throw new Error(`Description too long for ${apps[i]} - keep it below 200 chars`);
+ }
const logoFileName = apps[i] + '.png';