Skip to content

Commit ff0f558

Browse files
authored
fix(git-node-vote): specify GH API version (#1222)
1 parent b4704b4 commit ff0f558

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎lib/voting_session.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ export default class VotingSession extends Session {
7474
const yamlString = await this.req.text(
7575
`/repos/${this.owner}/${this.repo}/contents/${
7676
encodeURIComponent(subPath)}?ref=${prInfo.commits.nodes[0].commit.oid}`,
77-
{ agent: this.req.proxyAgent }
77+
{
78+
agent: this.req.proxyAgent,
79+
headers: {
80+
Accept: 'application/vnd.github.raw+json',
81+
'X-GitHub-Api-Version': '2026-03-10'
82+
}
83+
}
7884
);
7985
this.cli.stopSpinner('Download complete');
8086

0 commit comments

Comments
 (0)