mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 02:17:31 +00:00
14 lines
502 B
TypeScript
14 lines
502 B
TypeScript
import { z } from 'zod'
|
|
import { OptionalString } from './rpc-param-primitives'
|
|
|
|
// Why: repo-selector and slug-addressed issue updates must accept the identical field set.
|
|
export const IssueUpdate = z.object({
|
|
state: z.enum(['open', 'closed']).optional(),
|
|
title: OptionalString,
|
|
body: OptionalString,
|
|
addLabels: z.array(z.string()).optional(),
|
|
removeLabels: z.array(z.string()).optional(),
|
|
addAssignees: z.array(z.string()).optional(),
|
|
removeAssignees: z.array(z.string()).optional()
|
|
})
|