From 319a2d58959b3eda4c352f92e69c6bf076fa5654 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 15 Oct 2026 16:02:23 +0200 Subject: [PATCH] fix(git-node-vote): specify GH API version --- lib/voting_session.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/voting_session.js b/lib/voting_session.js index bc6d4cae..f9c499b1 100644 --- a/lib/voting_session.js +++ b/lib/voting_session.js @@ -74,7 +74,13 @@ export default class VotingSession extends Session { const yamlString = await this.req.text( `/repos/${this.owner}/${this.repo}/contents/${ encodeURIComponent(subPath)}?ref=${prInfo.commits.nodes[0].commit.oid}`, - { agent: this.req.proxyAgent } + { + agent: this.req.proxyAgent, + headers: { + Accept: 'application/vnd.github.raw+json', + 'X-GitHub-Api-Version': '2026-03-10' + } + } ); this.cli.stopSpinner('Download complete');