Skip to content

Commit 28bd07c

Browse files
committed
fix: correct GitHub Copilot authentication issue from recent changes
1 parent 96a7b34 commit 28bd07c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/opencode/src/auth/github-copilot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export namespace AuthGithubCopilot {
1212

1313
const config = await Config.get()
1414
const providerConfig = config.provider?.[providerID]
15-
const configUrl = providerConfig?.options?.githubEnterpriseUrl
15+
const configUrl = providerConfig?.options?.enterpriseUrl
1616

1717
return configUrl ? normalizeDomain(configUrl) : "github.com"
1818
}

packages/opencode/src/config/config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,7 @@ export namespace Config {
420420
.object({
421421
apiKey: z.string().optional(),
422422
baseURL: z.string().optional(),
423-
githubEnterpriseUrl: z
424-
.string()
425-
.optional()
426-
.describe("GitHub Enterprise URL for copilot authentication"),
423+
enterpriseUrl: z.string().optional().describe("GitHub Enterprise URL for copilot authentication"),
427424
timeout: z
428425
.union([
429426
z

0 commit comments

Comments
 (0)