release-please 17.4.0 → 17.4.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.
@@ -160,6 +160,18 @@ class GitHub {
160
160
  draft: !!(options === null || options === void 0 ? void 0 : options.draft),
161
161
  labels: pullRequest.labels,
162
162
  });
163
+ if (prNumber === 0) {
164
+ this.logger.warn('no code changes detected, skipping pull request creation');
165
+ return {
166
+ headBranchName: pullRequest.headBranchName,
167
+ baseBranchName: targetBranch,
168
+ number: 0,
169
+ title: pullRequest.title,
170
+ body: pullRequest.body,
171
+ labels: pullRequest.labels,
172
+ files: [],
173
+ };
174
+ }
163
175
  return await this.getPullRequest(prNumber);
164
176
  });
165
177
  /**
@@ -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.4.0";
17
+ export declare const VERSION = "17.4.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.4.0';
39
+ exports.VERSION = '17.4.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.4.0",
3
+ "version": "17.4.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",
@@ -103,6 +103,6 @@
103
103
  },
104
104
  "overrides": {
105
105
  "tmp": "0.2.5",
106
- "serialize-javascript": "^7.0.4"
106
+ "serialize-javascript": "^7.0.5"
107
107
  }
108
108
  }