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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user