@trim21/personal-pi-extensions 0.1.687 → 0.1.689
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/gh/schemas.ts +4 -2
package/package.json
CHANGED
package/src/gh/schemas.ts
CHANGED
|
@@ -16,14 +16,16 @@ import { Type } from "typebox";
|
|
|
16
16
|
/** GitHub 的 actor(author / assignee / mergedBy / review 作者)。 */
|
|
17
17
|
export const ghActorSchema = Type.Object({
|
|
18
18
|
login: Type.Optional(Type.String()),
|
|
19
|
-
name
|
|
19
|
+
// `user.name` 是 `string | null`:没有显示名的账号返回 null
|
|
20
|
+
name: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
20
21
|
is_bot: Type.Optional(Type.Boolean()),
|
|
21
22
|
});
|
|
22
23
|
|
|
23
24
|
export const ghLabelSchema = Type.Object({
|
|
24
25
|
name: Type.String(),
|
|
25
26
|
color: Type.Optional(Type.String()),
|
|
26
|
-
description:
|
|
27
|
+
// 没有描述的 label 是 `"description": null`(不是缺字段),所以既要 optional 也要 nullable
|
|
28
|
+
description: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
27
29
|
});
|
|
28
30
|
|
|
29
31
|
export const ghMilestoneSchema = Type.Object({
|