Add web GitLab runtime parity (#2614)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo Hong
2026-05-22 15:25:45 -07:00
committed by GitHub
co-authored by Orca
parent c825467a4f
commit 1ee2adae70
12 changed files with 1685 additions and 103 deletions
+9
View File
@@ -13,6 +13,10 @@ const WorkItemsList = RepoSelector.extend({
before: OptionalString
})
const IssuesList = RepoSelector.extend({
limit: OptionalFiniteNumber
})
const WorkItem = RepoSelector.extend({
number: z.number().int().positive(),
type: z.enum(['issue', 'pr']).optional()
@@ -281,6 +285,11 @@ export const GITHUB_METHODS: RpcMethod[] = [
handler: async (params, { runtime }) =>
runtime.listRepoWorkItems(params.repo, params.limit, params.query, params.before)
}),
defineMethod({
name: 'github.listIssues',
params: IssuesList,
handler: async (params, { runtime }) => runtime.listRepoIssues(params.repo, params.limit)
}),
defineMethod({
name: 'github.countWorkItems',
params: WorkItemsCount,