release-please 16.14.1 → 16.14.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.
@@ -9,6 +9,7 @@ export interface PluginFactoryOptions {
9
9
  targetBranch: string;
10
10
  repositoryConfig: RepositoryConfig;
11
11
  manifestPath: string;
12
+ separatePullRequests?: boolean;
12
13
  alwaysLinkLocal?: boolean;
13
14
  updatePeerDependencies?: boolean;
14
15
  updateAllPackages?: boolean;
@@ -22,26 +22,44 @@ const errors_1 = require("../errors");
22
22
  const sentence_case_1 = require("../plugins/sentence-case");
23
23
  const group_priority_1 = require("../plugins/group-priority");
24
24
  const pluginFactories = {
25
- 'linked-versions': options => new linked_versions_1.LinkedVersions(options.github, options.targetBranch, options.repositoryConfig, options.type.groupName, options.type.components, {
26
- ...options,
27
- ...options.type,
28
- }),
29
- 'cargo-workspace': options => new cargo_workspace_1.CargoWorkspace(options.github, options.targetBranch, options.repositoryConfig, {
30
- ...options,
31
- ...options.type,
32
- }),
33
- 'node-workspace': options => new node_workspace_1.NodeWorkspace(options.github, options.targetBranch, options.repositoryConfig, {
34
- ...options,
35
- ...options.type,
36
- }),
37
- 'maven-workspace': options => new maven_workspace_1.MavenWorkspace(options.github, options.targetBranch, options.repositoryConfig, {
25
+ 'linked-versions': options =>
26
+ // NOTE: linked-versions had already have a different behavior about merging
27
+ // see test/plugins/compatibility/linked-versions-workspace.ts
28
+ new linked_versions_1.LinkedVersions(options.github, options.targetBranch, options.repositoryConfig, options.type.groupName, options.type.components, {
38
29
  ...options,
39
30
  ...options.type,
40
31
  }),
32
+ 'cargo-workspace': options => {
33
+ var _a;
34
+ return new cargo_workspace_1.CargoWorkspace(options.github, options.targetBranch, options.repositoryConfig, {
35
+ ...options,
36
+ ...options.type,
37
+ merge: (_a = options.type.merge) !== null && _a !== void 0 ? _a : !options.separatePullRequests,
38
+ });
39
+ },
40
+ 'node-workspace': options => {
41
+ var _a;
42
+ return new node_workspace_1.NodeWorkspace(options.github, options.targetBranch, options.repositoryConfig, {
43
+ ...options,
44
+ ...options.type,
45
+ merge: (_a = options.type.merge) !== null && _a !== void 0 ? _a : !options.separatePullRequests,
46
+ });
47
+ },
48
+ 'maven-workspace': options => {
49
+ var _a;
50
+ return new maven_workspace_1.MavenWorkspace(options.github, options.targetBranch, options.repositoryConfig, {
51
+ ...options,
52
+ ...options.type,
53
+ merge: (_a = options.type.merge) !== null && _a !== void 0 ? _a : !options.separatePullRequests,
54
+ });
55
+ },
41
56
  'sentence-case': options => new sentence_case_1.SentenceCase(options.github, options.targetBranch, options.repositoryConfig, options.type.specialWords),
42
57
  'group-priority': options => new group_priority_1.GroupPriority(options.github, options.targetBranch, options.repositoryConfig, options.type.groups),
43
58
  };
44
59
  function buildPlugin(options) {
60
+ if (!options.separatePullRequests) {
61
+ options.separatePullRequests = false;
62
+ }
45
63
  if (typeof options.type === 'object') {
46
64
  const builder = pluginFactories[options.type.type];
47
65
  if (builder) {
@@ -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 = "16.14.1";
17
+ export declare const VERSION = "16.14.2";
@@ -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 = '16.14.1';
39
+ exports.VERSION = '16.14.2';
40
40
  // x-release-please-end
41
41
  //# sourceMappingURL=index.js.map
@@ -104,6 +104,7 @@ class Manifest {
104
104
  targetBranch: this.targetBranch,
105
105
  repositoryConfig: this.repositoryConfig,
106
106
  manifestPath: this.manifestPath,
107
+ separatePullRequests: this.separatePullRequests,
107
108
  }));
108
109
  this.pullRequestOverflowHandler = new pull_request_overflow_handler_1.FilePullRequestOverflowHandler(this.github, this.logger);
109
110
  }
@@ -43,10 +43,10 @@ class VersionsManifest extends java_update_1.JavaUpdate {
43
43
  const newLines = [];
44
44
  content.split(/\r?\n/).forEach(line => {
45
45
  if (version.includes('SNAPSHOT')) {
46
- newLines.push(line.replace(new RegExp(`${packageName}:(.*):(.*)`, 'g'), `${packageName}:$1:${version}`));
46
+ newLines.push(line.replace(new RegExp(`^${packageName}:(.*):(.*)`, 'g'), `${packageName}:$1:${version}`));
47
47
  }
48
48
  else {
49
- newLines.push(line.replace(new RegExp(`${packageName}:(.*):(.*)`, 'g'), `${packageName}:${version}:${version}`));
49
+ newLines.push(line.replace(new RegExp(`^${packageName}:(.*):(.*)`, 'g'), `${packageName}:${version}:${version}`));
50
50
  }
51
51
  });
52
52
  return newLines.join('\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "16.14.1",
3
+ "version": "16.14.2",
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",