Skip to content

Commit

Permalink
Merge pull request #146 from JasonEtco/add-schema-fields
Browse files Browse the repository at this point in the history
Add more fields to schema
  • Loading branch information
JasonEtco authored Dec 23, 2022
2 parents e0198cc + f883bb4 commit 4cc79e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 4cc79e4

Please sign in to comment.