Skip to content

Commit 4cc79e4

Browse files
authored
Merge pull request #146 from JasonEtco/add-schema-fields
Add more fields to schema
2 parents e0198cc + f883bb4 commit 4cc79e4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/helpers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export const frontmatterSchema = z
77
assignees: z.union([z.array(z.string()), z.string()]).optional(),
88
labels: z.union([z.array(z.string()), z.string()]).optional(),
99
milestone: z.union([z.string(), z.number()]).optional(),
10+
name: z.string().optional(),
11+
about: z.string().optional(),
1012
})
1113
.strict();
1214

tests/__snapshots__/index.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ exports[`create-an-issue logs a helpful error if the frontmatter is invalid 1`]
240240
[
241241
{
242242
"_errors": [
243-
"Unrecognized key(s) in object: 'name', 'not_a_thing'",
243+
"Unrecognized key(s) in object: 'not_a_thing'",
244244
],
245245
"labels": {
246246
"_errors": [

0 commit comments

Comments
 (0)