bitbucket-repository-provider 4.1.1 → 4.1.2
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/bitbucket-provider.mjs +13 -11
package/package.json
CHANGED
|
@@ -153,17 +153,19 @@ export class BitbucketProvider extends MultiGroupProvider {
|
|
|
153
153
|
* {@link https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories}
|
|
154
154
|
*/
|
|
155
155
|
async initializeRepositories() {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
156
|
+
try {
|
|
157
|
+
let next = "repositories/?role=contributor";
|
|
158
|
+
|
|
159
|
+
do {
|
|
160
|
+
const { json } = await this.fetchJSON(next);
|
|
161
|
+
|
|
162
|
+
next = json.next;
|
|
163
|
+
json.values.map(b => {
|
|
164
|
+
const groupName = b.owner.nickname || b.owner.username;
|
|
165
|
+
this.addRepositoryGroup(groupName, b.owner).addRepository(b.name, b);
|
|
166
|
+
});
|
|
167
|
+
} while (next);
|
|
168
|
+
} catch {}
|
|
167
169
|
}
|
|
168
170
|
|
|
169
171
|
fetch(url, options = {}, responseHandler) {
|