You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consterrorMessage=`An error occurred while ${action} the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check ${template}!`
Copy file name to clipboardExpand all lines: tests/__snapshots__/index.test.ts.snap
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -232,6 +232,32 @@ exports[`create-an-issue logs a helpful error if creating an issue throws an err
232
232
]
233
233
`;
234
234
235
+
exports[`create-an-issue logs a helpful error if the frontmatter is invalid 1`] =`
236
+
[
237
+
[
238
+
"An error occurred while parsing the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/invalid-frontmatter.md!",
239
+
],
240
+
[
241
+
{
242
+
"_errors": [
243
+
"Unrecognized key(s) in object: 'name', 'not_a_thing'",
244
+
],
245
+
"labels": {
246
+
"_errors": [
247
+
"Expected array, received number",
248
+
"Expected string, received number",
249
+
],
250
+
},
251
+
"title": {
252
+
"_errors": [
253
+
"Required",
254
+
],
255
+
},
256
+
},
257
+
],
258
+
]
259
+
`;
260
+
235
261
exports[`create-an-issue logs a helpful error if updating an issue throws an error with more errors 1`] =`
0 commit comments