release-please 13.4.8 → 13.4.9
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 +7 -0
- package/build/src/strategies/base.js +15 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
### [13.4.9](https://github.com/googleapis/release-please/compare/v13.4.8...v13.4.9) (2022-02-14)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* standalone releases should only be released by its matching component ([#1296](https://github.com/googleapis/release-please/issues/1296)) ([75dd686](https://github.com/googleapis/release-please/commit/75dd686a667da397b54498f543128d4cc6bb784e))
|
|
13
|
+
|
|
7
14
|
### [13.4.8](https://github.com/googleapis/release-please/compare/v13.4.7...v13.4.8) (2022-02-08)
|
|
8
15
|
|
|
9
16
|
|
|
@@ -239,14 +239,24 @@ class BaseStrategy {
|
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
241
|
const component = await this.getComponent();
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
!pullRequestBody.releaseData[0].component
|
|
245
|
-
|
|
246
|
-
|
|
242
|
+
let releaseData;
|
|
243
|
+
if (pullRequestBody.releaseData.length === 1 &&
|
|
244
|
+
!pullRequestBody.releaseData[0].component) {
|
|
245
|
+
// standalone release PR, ensure the components match
|
|
246
|
+
if (this.normalizeComponent(branchName.component) !==
|
|
247
|
+
this.normalizeComponent(component)) {
|
|
248
|
+
logger_1.logger.warn(`PR component: ${branchName.component} does not match configured component: ${component}`);
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
releaseData = pullRequestBody.releaseData[0];
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
// manifest release with multiple components
|
|
255
|
+
releaseData = pullRequestBody.releaseData.find(releaseData => {
|
|
247
256
|
return (this.normalizeComponent(releaseData.component) ===
|
|
248
257
|
this.normalizeComponent(component));
|
|
249
258
|
});
|
|
259
|
+
}
|
|
250
260
|
const notes = releaseData === null || releaseData === void 0 ? void 0 : releaseData.notes;
|
|
251
261
|
if (notes === undefined) {
|
|
252
262
|
logger_1.logger.warn('Failed to find release notes');
|