From b75c5af5a0dd586defa334a69582fa32f5b26c65 Mon Sep 17 00:00:00 2001 From: Mariusz Mazur Date: Sun, 10 May 2026 00:16:12 +0200 Subject: [PATCH] fix: use standard GitHub API version in githubHeaders The githubHeaders function was sharing the Copilot API_VERSION constant ("2025-10-01"), which is only valid for Copilot endpoints. Standard GitHub REST API endpoints (like /user) reject this version with HTTP 400. Use the stable "2022-11-28" version for GitHub REST API calls instead. Fixes #4 Co-Authored-By: Claude Opus 4.6 --- src/lib/api-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/api-config.ts b/src/lib/api-config.ts index 86752c5..fd1d25b 100644 --- a/src/lib/api-config.ts +++ b/src/lib/api-config.ts @@ -67,7 +67,7 @@ export const githubHeaders = (githubToken: string) => ({ "editor-version": `vscode/${state.vsCodeVersion}`, "editor-plugin-version": EDITOR_PLUGIN_VERSION, "user-agent": USER_AGENT, - "x-github-api-version": API_VERSION, + "x-github-api-version": "2022-11-28", "x-vscode-user-agent-library-version": "electron-fetch", })