From 13b03eb80ce9e90d4aa26fa79e2eff19cf8ac6ad Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 18:13:23 +0000 Subject: [PATCH 1/2] Initial plan From fcfed11684212d60d08252a5a0ac5b0132a0cb45 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 18:17:22 +0000 Subject: [PATCH 2/2] test: add explicit /api/graphql proxy coverage in handler test Agent-Logs-Url: https://github.com/github/gh-aw-mcpg/sessions/c6b2a362-0e12-4612-9786-e6d4c9c0687c Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --- internal/proxy/handler_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/proxy/handler_test.go b/internal/proxy/handler_test.go index f45bb7bb..f8d7484c 100644 --- a/internal/proxy/handler_test.go +++ b/internal/proxy/handler_test.go @@ -195,8 +195,10 @@ func TestServeHTTP_GraphQLPreservesQueryString(t *testing.T) { wantPath string }{ {name: "graphql path", path: "/graphql?foo=bar", wantPath: "/graphql?foo=bar"}, - {name: "ghes api graphql path", path: "/api/graphql?foo=bar", wantPath: "/graphql?foo=bar"}, - {name: "gh host prefixed graphql path", path: "/api/v3/graphql?foo=bar", wantPath: "/graphql?foo=bar"}, + {name: "ghes api graphql path", path: "/api/graphql", wantPath: "/graphql"}, + {name: "ghes api graphql path with query", path: "/api/graphql?foo=bar", wantPath: "/graphql?foo=bar"}, + {name: "gh host prefixed graphql path", path: "/api/v3/graphql", wantPath: "/graphql"}, + {name: "gh host prefixed graphql path with query", path: "/api/v3/graphql?foo=bar", wantPath: "/graphql?foo=bar"}, } for _, tt := range tests {