fix(github): preserve GHES non-default auth ports (#9680)

This commit is contained in:
OrcaWin
2026-07-21 11:39:01 -07:00
committed by GitHub
parent 2add99c44c
commit a97c160363
5 changed files with 114 additions and 35 deletions
@@ -61,7 +61,7 @@ describe('githubHostExecOptions', () => {
describe('resolveGitHubRepoExecution', () => {
it('combines local repository and GitHub host execution options', async () => {
const ownerRepo = { owner: 'acme', repo: 'widgets', host: 'github.acme-corp.com' }
const ownerRepo = { owner: 'acme', repo: 'widgets', host: 'github.acme-corp.com:8443' }
isGitHubHostAuthenticatedMock.mockResolvedValue(true)
await expect(
@@ -71,11 +71,11 @@ describe('resolveGitHubRepoExecution', () => {
ghOptions: {
cwd: '/repo',
wslDistro: 'Ubuntu',
host: 'github.acme-corp.com'
host: 'github.acme-corp.com:8443'
}
})
expect(isGitHubHostAuthenticatedMock).toHaveBeenCalledWith(
'github.acme-corp.com',
'github.acme-corp.com:8443',
'/repo',
null,
{ wslDistro: 'Ubuntu' }