From 3e072056cfbd3dd926a37efe088488e48725c520 Mon Sep 17 00:00:00 2001 From: Jason Etcovitch Date: Thu, 22 Dec 2022 22:13:38 -0500 Subject: [PATCH 1/2] Add more fields to schema --- src/helpers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helpers.ts b/src/helpers.ts index 8444a9c..3e503f5 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -7,6 +7,8 @@ export const frontmatterSchema = z assignees: z.union([z.array(z.string()), z.string()]).optional(), labels: z.union([z.array(z.string()), z.string()]).optional(), milestone: z.union([z.string(), z.number()]).optional(), + name: z.string().optional(), + about: z.string().optional(), }) .strict(); From f883bb4c96333b9f1648f6cfedd554c79ba2d0f5 Mon Sep 17 00:00:00 2001 From: Jason Etcovitch Date: Fri, 23 Dec 2022 03:17:33 +0000 Subject: [PATCH 2/2] Fix test snapshot --- tests/__snapshots__/index.test.ts.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/__snapshots__/index.test.ts.snap b/tests/__snapshots__/index.test.ts.snap index 7340d64..0523e74 100644 --- a/tests/__snapshots__/index.test.ts.snap +++ b/tests/__snapshots__/index.test.ts.snap @@ -240,7 +240,7 @@ exports[`create-an-issue logs a helpful error if the frontmatter is invalid 1`] [ { "_errors": [ - "Unrecognized key(s) in object: 'name', 'not_a_thing'", + "Unrecognized key(s) in object: 'not_a_thing'", ], "labels": { "_errors": [