Skip to content

Commit 3a96da8

Browse files
jchuervaCopilot
andcommitted
Simplify GitHub API request method forwarding
Use the validated request method when building the host-mediated GitHub API RPC payload instead of duplicating the GET literal. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent f8e9885 commit 3a96da8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nodejs/src/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ export class CopilotSession {
14081408
validateGitHubApiRequest(request);
14091409
const response = await this.rpc.api.github.request({
14101410
scope: "current_repository",
1411-
method: "GET",
1411+
method: request.method,
14121412
path: request.path,
14131413
query: request.query,
14141414
paginate: request.paginate,

0 commit comments

Comments
 (0)