release-please 17.3.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.3.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.3.0';
39
+ exports.VERSION = '17.4.1';
40
40
  // x-release-please-end
41
41
  //# sourceMappingURL=index.js.map
@@ -86,6 +86,7 @@ class JavaYoshiMonoRepo extends java_1.Java {
86
86
  const buildFilesSearch = this.github.findFilesByFilenameAndRef('build.gradle', this.targetBranch, this.path);
87
87
  const dependenciesSearch = this.github.findFilesByFilenameAndRef('dependencies.properties', this.targetBranch, this.path);
88
88
  const readmeFilesSearch = this.github.findFilesByFilenameAndRef('README.md', this.targetBranch, this.path);
89
+ const versionFilesSearch = this.github.findFilesByFilenameAndRef('Version.java', this.targetBranch, this.path);
89
90
  const pomFiles = await pomFilesSearch;
90
91
  pomFiles.forEach(path => {
91
92
  updates.push({
@@ -134,6 +135,18 @@ class JavaYoshiMonoRepo extends java_1.Java {
134
135
  }),
135
136
  });
136
137
  });
138
+ const versionFiles = await versionFilesSearch;
139
+ versionFiles.forEach(path => {
140
+ updates.push({
141
+ path: this.addPath(path),
142
+ createIfMissing: false,
143
+ updater: new java_update_1.JavaUpdate({
144
+ version,
145
+ versionsMap,
146
+ isSnapshot: options.isSnapshot,
147
+ }),
148
+ });
149
+ });
137
150
  this.extraFiles.forEach(extraFile => {
138
151
  if (typeof extraFile === 'object') {
139
152
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "17.3.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",
@@ -63,7 +63,7 @@
63
63
  "nock": "^13.0.0",
64
64
  "node-fetch": "^2.6.0",
65
65
  "sinon": "18.0.1",
66
- "snap-shot-it": "^7.0.0"
66
+ "snap-shot-it": "^7.9.10"
67
67
  },
68
68
  "dependencies": {
69
69
  "@conventional-commits/parser": "^0.4.1",
@@ -99,9 +99,10 @@
99
99
  "yargs": "^17.0.0"
100
100
  },
101
101
  "engines": {
102
- "node": ">=18.0.0"
102
+ "node": ">=20.0.0"
103
103
  },
104
104
  "overrides": {
105
- "tmp": "0.2.5"
105
+ "tmp": "0.2.5",
106
+ "serialize-javascript": "^7.0.5"
106
107
  }
107
108
  }