release-please 13.19.3 → 13.19.6
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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,28 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [13.19.6](https://github.com/googleapis/release-please/compare/v13.19.5...v13.19.6) (2022-07-27)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* skip component when manifest release does not include component ([#1537](https://github.com/googleapis/release-please/issues/1537)) ([8f1a3a8](https://github.com/googleapis/release-please/commit/8f1a3a84a7abc81c47d8cac9295e58bc37cc92c5)), closes [#1536](https://github.com/googleapis/release-please/issues/1536)
|
|
13
|
+
|
|
14
|
+
## [13.19.5](https://github.com/googleapis/release-please/compare/v13.19.4...v13.19.5) (2022-07-26)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **dart:** add multiline flag to replace regex ([#1524](https://github.com/googleapis/release-please/issues/1524)) ([fd7b73b](https://github.com/googleapis/release-please/commit/fd7b73b8f9288dbfa84f37a6ce2e77f6c1b49db8)), closes [#1523](https://github.com/googleapis/release-please/issues/1523)
|
|
20
|
+
|
|
21
|
+
## [13.19.4](https://github.com/googleapis/release-please/compare/v13.19.3...v13.19.4) (2022-07-25)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **commits:** remove content before and after BREAKING in body ([#1531](https://github.com/googleapis/release-please/issues/1531)) ([f75e49f](https://github.com/googleapis/release-please/commit/f75e49f6b751347456746d9c4068191d340c8e1e))
|
|
27
|
+
* **python:** make` __init__.py` bump underscore / hyphen agnostic ([4b25a47](https://github.com/googleapis/release-please/commit/4b25a475d53fd4f2eadd14619f701e51275f8e62))
|
|
28
|
+
|
|
7
29
|
## [13.19.3](https://github.com/googleapis/release-please/compare/v13.19.2...v13.19.3) (2022-07-08)
|
|
8
30
|
|
|
9
31
|
|
package/build/src/commit.js
CHANGED
|
@@ -92,6 +92,7 @@ function toConventionalChangelogFormat(ast) {
|
|
|
92
92
|
text: '', // "text" will be populated if a BREAKING CHANGE token is parsed.
|
|
93
93
|
};
|
|
94
94
|
visitWithAncestors(ast, ['breaking-change'], (node, ancestors) => {
|
|
95
|
+
let hitBreakingMarker = false;
|
|
95
96
|
let parent = ancestors.pop();
|
|
96
97
|
if (!parent) {
|
|
97
98
|
return;
|
|
@@ -104,7 +105,13 @@ function toConventionalChangelogFormat(ast) {
|
|
|
104
105
|
breaking.text = '';
|
|
105
106
|
// We treat text from the BREAKING CHANGE marker forward as
|
|
106
107
|
// the breaking change notes:
|
|
107
|
-
visit(parent, ['text', 'newline'], (node) => {
|
|
108
|
+
visit(parent, ['breaking-change', 'text', 'newline'], (node) => {
|
|
109
|
+
if (node.type === 'breaking-change') {
|
|
110
|
+
hitBreakingMarker = true;
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (!hitBreakingMarker)
|
|
114
|
+
return;
|
|
108
115
|
breaking.text += node.value;
|
|
109
116
|
});
|
|
110
117
|
break;
|
|
@@ -289,11 +289,17 @@ class BaseStrategy {
|
|
|
289
289
|
releaseData = pullRequestBody.releaseData[0];
|
|
290
290
|
}
|
|
291
291
|
else {
|
|
292
|
-
// manifest release with multiple components
|
|
293
|
-
|
|
294
|
-
|
|
292
|
+
// manifest release with multiple components - find the release notes
|
|
293
|
+
// for the component to see if it was included in this release (parsed
|
|
294
|
+
// from the release pull request body)
|
|
295
|
+
releaseData = pullRequestBody.releaseData.find(datum => {
|
|
296
|
+
return (this.normalizeComponent(datum.component) ===
|
|
295
297
|
this.normalizeComponent(component));
|
|
296
298
|
});
|
|
299
|
+
if (!releaseData && pullRequestBody.releaseData.length > 0) {
|
|
300
|
+
logger_1.logger.info(`Pull request contains releases, but not for component: ${component}`);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
297
303
|
}
|
|
298
304
|
const notes = releaseData === null || releaseData === void 0 ? void 0 : releaseData.notes;
|
|
299
305
|
if (notes === undefined) {
|
|
@@ -90,20 +90,16 @@ class Python extends base_1.BaseStrategy {
|
|
|
90
90
|
logger_1.logger.warn('No project/component found.');
|
|
91
91
|
}
|
|
92
92
|
else {
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
[projectName, projectName.replace(/-/g, '_')]
|
|
94
|
+
.flatMap(packageName => [
|
|
95
|
+
`${packageName}/__init__.py`,
|
|
96
|
+
`src/${packageName}/__init__.py`,
|
|
97
|
+
])
|
|
98
|
+
.forEach(packagePath => updates.push({
|
|
99
|
+
path: this.addPath(packagePath),
|
|
95
100
|
createIfMissing: false,
|
|
96
|
-
updater: new python_file_with_version_1.PythonFileWithVersion({
|
|
97
|
-
|
|
98
|
-
}),
|
|
99
|
-
});
|
|
100
|
-
updates.push({
|
|
101
|
-
path: this.addPath(`src/${projectName}/__init__.py`),
|
|
102
|
-
createIfMissing: false,
|
|
103
|
-
updater: new python_file_with_version_1.PythonFileWithVersion({
|
|
104
|
-
version,
|
|
105
|
-
}),
|
|
106
|
-
});
|
|
101
|
+
updater: new python_file_with_version_1.PythonFileWithVersion({ version }),
|
|
102
|
+
}));
|
|
107
103
|
}
|
|
108
104
|
// There should be only one version.py, but foreach in case that is incorrect
|
|
109
105
|
const versionPyFilesSearch = this.github.findFilesByFilenameAndRef('version.py', this.targetBranch, this.path);
|
|
@@ -26,19 +26,24 @@ class PubspecYaml extends default_1.DefaultUpdater {
|
|
|
26
26
|
* @returns {string} The updated content
|
|
27
27
|
*/
|
|
28
28
|
updateContent(content) {
|
|
29
|
-
const oldVersion = content.match(
|
|
29
|
+
const oldVersion = content.match(/^version: ([0-9.]+)\+?(.*$)/m);
|
|
30
30
|
let buildNumber = '';
|
|
31
31
|
if (oldVersion) {
|
|
32
|
-
buildNumber =
|
|
33
|
-
|
|
32
|
+
buildNumber = oldVersion[2];
|
|
33
|
+
const parsedBuild = parseInt(buildNumber);
|
|
34
|
+
if (!isNaN(parsedBuild)) {
|
|
35
|
+
buildNumber = `+${parsedBuild + 1}`;
|
|
36
|
+
logger_1.logger.info(`updating from ${oldVersion[1]}+${oldVersion[2]} to ${this.version}${buildNumber}`);
|
|
37
|
+
}
|
|
38
|
+
else if (buildNumber.length > 0) {
|
|
34
39
|
buildNumber = `+${buildNumber}`;
|
|
35
|
-
logger_1.logger.info(`updating from ${oldVersion[1]}
|
|
40
|
+
logger_1.logger.info(`updating from ${oldVersion[1]}+${oldVersion[2]} to ${this.version}${buildNumber}`);
|
|
36
41
|
}
|
|
37
42
|
else {
|
|
38
43
|
logger_1.logger.info(`updating from ${oldVersion[1]} to ${this.version}`);
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
|
-
return content.replace(
|
|
46
|
+
return content.replace(/^version: .*$/m, `version: ${this.version}${buildNumber}`);
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
49
|
exports.PubspecYaml = PubspecYaml;
|
package/package.json
CHANGED