Add mobile Tasks parity (#2452)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo Hong
2026-05-21 20:26:07 -07:00
committed by GitHub
co-authored by Orca
parent 3efc669bd4
commit b1973657ea
123 changed files with 26492 additions and 1461 deletions
+20
View File
@@ -103,6 +103,15 @@ const UpdatePrTitle = RepoSelector.extend({
prRepo: SlugRepo.nullable().optional()
})
const UpdatePr = RepoSelector.extend({
prNumber: z.number().int().positive(),
updates: z.object({
title: OptionalString,
body: z.string().optional()
}),
prRepo: SlugRepo.nullable().optional()
})
const MergePr = RepoSelector.extend({
prNumber: z.number().int().positive(),
method: z.enum(['merge', 'squash', 'rebase']).optional(),
@@ -398,6 +407,17 @@ export const GITHUB_METHODS: RpcMethod[] = [
handler: async (params, { runtime }) =>
runtime.updateRepoPRTitle(params.repo, params.prNumber, params.title, params.prRepo ?? null)
}),
defineMethod({
name: 'github.updatePR',
params: UpdatePr,
handler: async (params, { runtime }) =>
runtime.updateRepoPRDetails(
params.repo,
params.prNumber,
params.updates,
params.prRepo ?? null
)
}),
defineMethod({
name: 'github.mergePR',
params: MergePr,