Add PR review queue badge foundation

- Add provider-neutral review queue types, adapter, and checks-panel badges.\n- Keep the design doc out of the PR diff.
This commit is contained in:
Jinjing
2026-05-15 13:50:56 -07:00
parent 027f561b5b
commit c90b9f72ef
8 changed files with 577 additions and 3 deletions
+15
View File
@@ -20,6 +20,7 @@ import {
classifyListIssuesError,
getIssueOwnerRepo,
getOwnerRepo,
parseGitHubRemoteIdentity,
parseGitHubOwnerRepo,
resolveIssueSource
} from './gh-utils'
@@ -47,6 +48,20 @@ describe('github owner/repo resolution', () => {
expect(parseGitHubOwnerRepo('git@example.com:stablyai/orca.git')).toBeNull()
})
it('parses GitHub Enterprise host identity', () => {
expect(parseGitHubRemoteIdentity('https://ghe.acme.internal/acme/orca.git')).toEqual({
host: 'ghe.acme.internal',
owner: 'acme',
repo: 'orca'
})
expect(parseGitHubRemoteIdentity('git@ghe.acme.internal:acme/orca.git')).toEqual({
host: 'ghe.acme.internal',
owner: 'acme',
repo: 'orca'
})
expect(parseGitHubOwnerRepo('https://ghe.acme.internal/acme/orca.git')).toBeNull()
})
it('keeps getOwnerRepo origin-based', async () => {
gitExecFileAsyncMock.mockResolvedValueOnce({
stdout: 'git@github.com:fork/orca.git\n'