Skip to content

Commit 6a7a31a

Browse files
committed
feat: update to newer github api version in general
1 parent 1486750 commit 6a7a31a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/github.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ export default class GitHub {
5858
this.pollInterval = 60;
5959
this._username = "";
6060
this.headers = {
61-
Accept: "application/vnd.github.v3+json",
61+
Accept: "application/vnd.github+json",
62+
'X-GitHub-Api-Version': '2022-11-28',
6263
};
6364
}
6465

test/github.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ test('construction', (t) => {
7272
t.is(client.pollInterval, 60);
7373
t.is(client._username, '');
7474
t.deepEqual(client.headers, {
75-
Accept: "application/vnd.github.v3+json",
75+
Accept: "application/vnd.github+json",
76+
'X-GitHub-Api-Version': '2022-11-28',
7677
});
7778
});
7879

0 commit comments

Comments
 (0)