We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae57d80 commit 41aecf3Copy full SHA for 41aecf3
src/content.js
@@ -54,7 +54,6 @@ function buildUrl({
54
sort,
55
order,
56
per_page,
57
- access_token,
58
}) {
59
let query = `${base}?q=`;
60
query += `${author ? `+author:${author}` : ""}`;
@@ -90,7 +89,6 @@ function contributorCount({
90
89
}
91
92
let searchURL = buildUrl({
93
94
base: "https://api.github.com/search/issues",
95
order: "asc",
96
per_page: "1",
@@ -103,7 +101,11 @@ function contributorCount({
103
101
sort: "created",
104
102
});
105
106
- return fetch(searchURL)
+ return fetch(searchURL, {
+ headers: {
+ Authorization: `token ${access_token}`,
107
+ },
108
+ })
109
.then((res) => res.json())
110
.then(function (json) {
111
if (json.errors || json.message) {
0 commit comments