github-repository-provider 7.26.39 → 7.26.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/github-provider.mjs +7 -8
package/package.json
CHANGED
package/src/github-provider.mjs
CHANGED
|
@@ -126,15 +126,14 @@ export class GithubProvider extends MultiGroupProvider {
|
|
|
126
126
|
async initializeRepositories() {
|
|
127
127
|
try {
|
|
128
128
|
for (let page = 1; ; page++) {
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
// accept: "application/vnd.github.v3+json"
|
|
135
|
-
}
|
|
129
|
+
const url = `user/repos?page=${page}&per_page=100`;
|
|
130
|
+
const { response, json } = await this.fetchJSON(url, {
|
|
131
|
+
headers: {
|
|
132
|
+
accept: "application/vnd.github.baptiste-preview+json"
|
|
133
|
+
// accept: "application/vnd.github.v3+json"
|
|
136
134
|
}
|
|
137
|
-
);
|
|
135
|
+
});
|
|
136
|
+
|
|
138
137
|
if (json.length === 0 || !Array.isArray(json)) {
|
|
139
138
|
break;
|
|
140
139
|
}
|