We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1486750 commit 6a7a31aCopy full SHA for 6a7a31a
2 files changed
scripts/github.js
@@ -58,7 +58,8 @@ export default class GitHub {
58
this.pollInterval = 60;
59
this._username = "";
60
this.headers = {
61
- Accept: "application/vnd.github.v3+json",
+ Accept: "application/vnd.github+json",
62
+ 'X-GitHub-Api-Version': '2022-11-28',
63
};
64
}
65
test/github.js
@@ -72,7 +72,8 @@ test('construction', (t) => {
72
t.is(client.pollInterval, 60);
73
t.is(client._username, '');
74
t.deepEqual(client.headers, {
75
76
77
});
78
79
0 commit comments