Add web runtime client support
This commit is contained in:
@@ -142,6 +142,11 @@ const ProjectViewTable = z.object({
|
||||
queryOverride: OptionalString
|
||||
})
|
||||
|
||||
const ProjectWorkItemDetailsBySlug = SlugRepo.extend({
|
||||
number: z.number().int().positive(),
|
||||
type: z.enum(['issue', 'pr'])
|
||||
})
|
||||
|
||||
const ProjectRef = z.object({
|
||||
input: requiredString('Missing project reference')
|
||||
})
|
||||
@@ -399,6 +404,11 @@ export const GITHUB_METHODS: RpcMethod[] = [
|
||||
params: ProjectViewTable,
|
||||
handler: async (params, { runtime }) => runtime.getGitHubProjectViewTable(params)
|
||||
}),
|
||||
defineMethod({
|
||||
name: 'github.project.workItemDetailsBySlug',
|
||||
params: ProjectWorkItemDetailsBySlug,
|
||||
handler: async (params, { runtime }) => runtime.getGitHubProjectWorkItemDetailsBySlug(params)
|
||||
}),
|
||||
defineMethod({
|
||||
name: 'github.project.updateItemField',
|
||||
params: ProjectItemField,
|
||||
|
||||
Reference in New Issue
Block a user