mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 00:03:47 +00:00
Add web GitLab runtime parity (#2614)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user