release-please 17.6.0 → 17.6.1
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/build/src/github-api.js +13 -0
- package/build/src/github.js +13 -0
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +1 -1
- package/package.json +1 -1
package/build/src/github-api.js
CHANGED
|
@@ -50,6 +50,19 @@ class GitHubApi {
|
|
|
50
50
|
throw err;
|
|
51
51
|
}
|
|
52
52
|
this.logger.info(`received 502 error, ${maxRetries} attempts remaining`);
|
|
53
|
+
if (typeof opts.num === 'number') {
|
|
54
|
+
if (maxRetries === 1) {
|
|
55
|
+
this.logger.info('last retry, forcing batch size to 1');
|
|
56
|
+
opts.num = 1;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
const nextNum = Math.floor(opts.num / 2);
|
|
60
|
+
if (nextNum >= 1) {
|
|
61
|
+
this.logger.info(`halving batch size from ${opts.num} to ${nextNum}`);
|
|
62
|
+
opts.num = nextNum;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
53
66
|
}
|
|
54
67
|
maxRetries -= 1;
|
|
55
68
|
if (maxRetries >= 0) {
|
package/build/src/github.js
CHANGED
|
@@ -80,6 +80,19 @@ class GitHub {
|
|
|
80
80
|
throw err;
|
|
81
81
|
}
|
|
82
82
|
this.logger.info(`received 502 error, ${maxRetries} attempts remaining`);
|
|
83
|
+
if (typeof opts.num === 'number') {
|
|
84
|
+
if (maxRetries === 1) {
|
|
85
|
+
this.logger.info('last retry, forcing batch size to 1');
|
|
86
|
+
opts.num = 1;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
const nextNum = Math.floor(opts.num / 2);
|
|
90
|
+
if (nextNum >= 1) {
|
|
91
|
+
this.logger.info(`halving batch size from ${opts.num} to ${nextNum}`);
|
|
92
|
+
opts.num = nextNum;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
83
96
|
}
|
|
84
97
|
maxRetries -= 1;
|
|
85
98
|
if (maxRetries >= 0) {
|
package/build/src/index.d.ts
CHANGED
package/build/src/index.js
CHANGED
|
@@ -36,6 +36,6 @@ Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () {
|
|
|
36
36
|
exports.configSchema = require('../../schemas/config.json');
|
|
37
37
|
exports.manifestSchema = require('../../schemas/manifest.json');
|
|
38
38
|
// x-release-please-start-version
|
|
39
|
-
exports.VERSION = '17.6.
|
|
39
|
+
exports.VERSION = '17.6.1';
|
|
40
40
|
// x-release-please-end
|
|
41
41
|
//# sourceMappingURL=index.js.map
|