mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Fix patch review schema
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -73,14 +73,14 @@ type Verdict = "accept" | "reject";
|
||||
|
||||
export interface Review {
|
||||
verdict?: Verdict | null;
|
||||
comment?: string;
|
||||
comment?: string | null;
|
||||
inline: CodeComment[];
|
||||
timestamp: number;
|
||||
}
|
||||
|
||||
const reviewSchema = strictObject({
|
||||
verdict: optional(union([literal("accept"), literal("reject")])).nullable(),
|
||||
comment: optional(string()),
|
||||
verdict: optional(union([literal("accept"), literal("reject")]).nullable()),
|
||||
comment: optional(string().nullable()),
|
||||
inline: array(codeCommentSchema),
|
||||
timestamp: number(),
|
||||
}) satisfies ZodSchema<Review>;
|
||||
|
||||
Reference in New Issue
Block a user