feat(tasks): server-side scope filtering, pagination, and draft bug fix (#1135)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo Hong
2026-04-26 12:30:22 -07:00
committed by GitHub
co-authored by Orca
parent 738a08b712
commit 7720ed136c
13 changed files with 485 additions and 76 deletions
+8 -2
View File
@@ -9,6 +9,7 @@ import {
getRepoSlug,
listIssues,
listWorkItems,
countWorkItems,
getWorkItem,
createIssue,
updateIssue,
@@ -76,12 +77,17 @@ export function registerGitHubHandlers(store: Store, stats: StatsCollector): voi
ipcMain.handle(
'gh:listWorkItems',
(_event, args: { repoPath: string; limit?: number; query?: string }) => {
(_event, args: { repoPath: string; limit?: number; query?: string; before?: string }) => {
const repo = assertRegisteredRepo(args.repoPath, store)
return listWorkItems(repo.path, args.limit, args.query)
return listWorkItems(repo.path, args.limit, args.query, args.before)
}
)
ipcMain.handle('gh:countWorkItems', (_event, args: { repoPath: string; query?: string }) => {
const repo = assertRegisteredRepo(args.repoPath, store)
return countWorkItems(repo.path, args.query)
})
ipcMain.handle('gh:workItem', (_event, args: { repoPath: string; number: number }) => {
const repo = assertRegisteredRepo(args.repoPath, store)
return getWorkItem(repo.path, args.number)