release-please 17.1.2 → 17.1.3
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.
package/build/src/github.js
CHANGED
|
@@ -30,6 +30,7 @@ const signoff_commit_message_1 = require("./util/signoff-commit-message");
|
|
|
30
30
|
const git_file_utils_1 = require("@google-automations/git-file-utils");
|
|
31
31
|
const https_proxy_agent_1 = require("https-proxy-agent");
|
|
32
32
|
const http_proxy_agent_1 = require("http-proxy-agent");
|
|
33
|
+
const composite_1 = require("./updaters/composite");
|
|
33
34
|
class GitHub {
|
|
34
35
|
constructor(options) {
|
|
35
36
|
var _a;
|
|
@@ -1047,8 +1048,12 @@ class GitHub {
|
|
|
1047
1048
|
* @throws {GitHubAPIError} on an API error
|
|
1048
1049
|
*/
|
|
1049
1050
|
async buildChangeSet(updates, defaultBranch) {
|
|
1051
|
+
// Sometimes multiple updates are proposed for the same file,
|
|
1052
|
+
// such as when the manifest file is additionally changed by the
|
|
1053
|
+
// node-workspace plugin. We need to merge these updates.
|
|
1054
|
+
const mergedUpdates = (0, composite_1.mergeUpdates)(updates);
|
|
1050
1055
|
const changes = new Map();
|
|
1051
|
-
for (const update of
|
|
1056
|
+
for (const update of mergedUpdates) {
|
|
1052
1057
|
let content;
|
|
1053
1058
|
try {
|
|
1054
1059
|
content = await this.getFileContentsOnBranch(update.path, defaultBranch);
|
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 = '17.1.
|
|
39
|
+
exports.VERSION = '17.1.3';
|
|
40
40
|
// x-release-please-end
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -17,6 +17,7 @@ exports.Generic = exports.DEFAULT_DATE_FORMAT = void 0;
|
|
|
17
17
|
const default_1 = require("./default");
|
|
18
18
|
const logger_1 = require("../util/logger");
|
|
19
19
|
const VERSION_REGEX = /(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)(-(?<preRelease>[\w.]+))?(\+(?<build>[-\w.]+))?/;
|
|
20
|
+
const MAJOR_VERSION_REGEX = /\d+\b/;
|
|
20
21
|
const SINGLE_VERSION_REGEX = /\b\d+\b/;
|
|
21
22
|
const INLINE_UPDATE_REGEX = /x-release-please-(?<scope>major|minor|patch|version-date|version|date)/;
|
|
22
23
|
const BLOCK_START_REGEX = /x-release-please-start-(?<scope>major|minor|patch|version-date|version|date)/;
|
|
@@ -94,7 +95,7 @@ class Generic extends default_1.DefaultUpdater {
|
|
|
94
95
|
newLines.push(line.replace(VERSION_REGEX, version.toString()));
|
|
95
96
|
return;
|
|
96
97
|
case 'major':
|
|
97
|
-
newLines.push(line.replace(
|
|
98
|
+
newLines.push(line.replace(MAJOR_VERSION_REGEX, `${version.major}`));
|
|
98
99
|
return;
|
|
99
100
|
case 'minor':
|
|
100
101
|
newLines.push(line.replace(SINGLE_VERSION_REGEX, `${version.minor}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-please",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.3",
|
|
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",
|
|
@@ -101,5 +101,8 @@
|
|
|
101
101
|
},
|
|
102
102
|
"engines": {
|
|
103
103
|
"node": ">=18.0.0"
|
|
104
|
+
},
|
|
105
|
+
"overrides": {
|
|
106
|
+
"tmp": "0.2.5"
|
|
104
107
|
}
|
|
105
108
|
}
|