release-please
Advanced tools
@@ -242,10 +242,20 @@ "use strict"; | ||
const component = await this.getComponent(); | ||
logger_1.logger.info('component:', component); | ||
const releaseData = pullRequestBody.releaseData.length === 1 && | ||
!pullRequestBody.releaseData[0].component | ||
? pullRequestBody.releaseData[0] | ||
: pullRequestBody.releaseData.find(releaseData => { | ||
let releaseData; | ||
if (pullRequestBody.releaseData.length === 1 && | ||
!pullRequestBody.releaseData[0].component) { | ||
// standalone release PR, ensure the components match | ||
if (this.normalizeComponent(branchName.component) !== | ||
this.normalizeComponent(component)) { | ||
logger_1.logger.warn(`PR component: ${branchName.component} does not match configured component: ${component}`); | ||
return; | ||
} | ||
releaseData = pullRequestBody.releaseData[0]; | ||
} | ||
else { | ||
// manifest release with multiple components | ||
releaseData = pullRequestBody.releaseData.find(releaseData => { | ||
return (this.normalizeComponent(releaseData.component) === | ||
this.normalizeComponent(component)); | ||
}); | ||
} | ||
const notes = releaseData === null || releaseData === void 0 ? void 0 : releaseData.notes; | ||
@@ -252,0 +262,0 @@ if (notes === undefined) { |
{ | ||
"name": "release-please", | ||
"version": "13.4.8", | ||
"version": "13.4.9", | ||
"description": "generate release PRs based on the conventionalcommits.org spec", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
Sorry, the diff of this file is too big to display
604091
0.13%11478
0.09%