From 68de2e7acd26acb9242c8aa0897b811ac854a371 Mon Sep 17 00:00:00 2001 From: cryptoryda Date: Thu, 15 Feb 2024 12:42:32 +0000 Subject: [PATCH] discussion checck --- parser/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/parser/index.js b/parser/index.js index 5ce6a46..4275e2f 100644 --- a/parser/index.js +++ b/parser/index.js @@ -10,9 +10,16 @@ const parseMD = require('parse-md').default; * topic: Meta * status: Living * created: 2020-02-07 - */ +*/ +// Add a new check for the discussion field in the ARC metadata + +if (!metadata.hasOwnProperty('discussion') || !metadata.discussion.trim()) { + console.error('\n', arcReadmeFile, 'is missing or has an empty \'discussion\' field.\n'); + process.exit(1); +} const requiredMetadata = ['arc', 'title', 'authors', 'discussion', 'topic', 'status', 'created']; + const topics = ['Protocol', 'Network', 'Application', 'Meta']; const statuses = ['Draft', 'Active', 'Withdrawn', 'Accepted', 'Rejected', 'Final', 'Deprecated', 'Living'];