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.
|
@@ -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 =>
|
|
26
|
-
|
|
27
|
-
|
|
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) {
|
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 = '16.14.
|
|
39
|
+
exports.VERSION = '16.14.2';
|
|
40
40
|
// x-release-please-end
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
package/build/src/manifest.js
CHANGED
|
@@ -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(
|
|
46
|
+
newLines.push(line.replace(new RegExp(`^${packageName}:(.*):(.*)`, 'g'), `${packageName}:$1:${version}`));
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
|
-
newLines.push(line.replace(new RegExp(
|
|
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