feat(github): source-repo indicator + surface issue fetch errors (#1250)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Brennan Benson
2026-04-30 22:53:37 -07:00
committed by GitHub
co-authored by Orca
parent 1da0defb90
commit 12858f37e3
20 changed files with 1164 additions and 125 deletions
+7 -3
View File
@@ -80,7 +80,11 @@ describe('listWorkItems', () => {
}
])
})
const items = await listWorkItems('/repo-root', 10, 'assignee:@me')
const { items, sources } = await listWorkItems('/repo-root', 10, 'assignee:@me')
expect(sources).toEqual({
issues: { owner: 'acme', repo: 'widgets' },
prs: { owner: 'acme', repo: 'widgets' }
})
expect(ghExecFileAsyncMock).toHaveBeenNthCalledWith(
1,
[
@@ -160,7 +164,7 @@ describe('listWorkItems', () => {
}
])
})
const items = await listWorkItems('/repo-root', 10, 'is:pr is:draft')
const { items } = await listWorkItems('/repo-root', 10, 'is:pr is:draft')
expect(ghExecFileAsyncMock).toHaveBeenCalledTimes(1)
expect(ghExecFileAsyncMock).toHaveBeenCalledWith(
[
@@ -246,7 +250,7 @@ describe('listWorkItems', () => {
}
])
})
const items = await listWorkItems('/repo-root', 10, 'is:open')
const { items } = await listWorkItems('/repo-root', 10, 'is:open')
expect(ghExecFileAsyncMock).toHaveBeenCalledWith(
[
'issue',