@trim21/personal-pi-extensions 0.1.696 → 0.1.697
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/lib/github.ts +3 -4
package/package.json
CHANGED
package/src/lib/github.ts
CHANGED
|
@@ -50,10 +50,9 @@ const searchItemSchema = Type.Object({
|
|
|
50
50
|
created_at: Type.String(),
|
|
51
51
|
updated_at: Type.String(),
|
|
52
52
|
closed_at: Type.Union([Type.String(), Type.Null()]),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
]),
|
|
53
|
+
// 搜索 API 只在条目是 PR 时才带这个键(纯 issue 条目压根没有它);PR 条目一定带
|
|
54
|
+
// `merged_at`,未合并为 null、已合并为时间戳
|
|
55
|
+
pull_request: Type.Optional(Type.Object({ merged_at: Type.Union([Type.String(), Type.Null()]) })),
|
|
57
56
|
});
|
|
58
57
|
|
|
59
58
|
type SearchItem = Static<typeof searchItemSchema>;
|