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.
@@ -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) {
@@ -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) {
@@ -14,4 +14,4 @@ export { Logger, setLogger } from './util/logger';
14
14
  export { GitHub } from './github';
15
15
  export declare const configSchema: any;
16
16
  export declare const manifestSchema: any;
17
- export declare const VERSION = "17.6.0";
17
+ export declare const VERSION = "17.6.1";
@@ -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.0';
39
+ exports.VERSION = '17.6.1';
40
40
  // x-release-please-end
41
41
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "17.6.0",
3
+ "version": "17.6.1",
4
4
  "description": "generate release PRs based on the conventionalcommits.org spec",
5
5
  "main": "./build/src/index.js",
6
6
  "bin": "./build/src/bin/release-please.js",