@@ -86567,6 +86567,7 @@ exports.sleepInMs = sleepInMs;
8656786567Object.defineProperty(exports, "__esModule", ({ value: true }));
8656886568exports.Manifest = exports.MANIFEST_PULL_REQUEST_TITLE_PATTERN = exports.SNOOZE_LABEL = exports.DEFAULT_SNAPSHOT_LABELS = exports.DEFAULT_RELEASE_LABELS = exports.DEFAULT_LABELS = exports.DEFAULT_COMPONENT_NAME = exports.ROOT_PROJECT_PATH = exports.DEFAULT_RELEASE_PLEASE_MANIFEST = exports.DEFAULT_RELEASE_PLEASE_CONFIG = void 0;
8656986569const version_1 = __nccwpck_require__(17348);
86570+ const commit_1 = __nccwpck_require__(69158);
8657086571const logger_1 = __nccwpck_require__(68809);
8657186572const commit_split_1 = __nccwpck_require__(6941);
8657286573const tag_name_1 = __nccwpck_require__(36503);
@@ -86881,7 +86882,7 @@ class Manifest {
8688186882 this.logger.info(`Building candidate release pull request for path: ${path}`);
8688286883 this.logger.debug(`type: ${config.releaseType}`);
8688386884 this.logger.debug(`targetBranch: ${this.targetBranch}`);
86884- let pathCommits = commitsPerPath[path];
86885+ let pathCommits = (0, commit_1.parseConventionalCommits)( commitsPerPath[path], this.logger) ;
8688586886 // The processCommits hook can be implemented by plugins to
8688686887 // post-process commits. This can be used to perform cleanup, e.g,, sentence
8688786888 // casing all commit messages:
@@ -87131,19 +87132,19 @@ class Manifest {
8713187132 const strategiesByPath = await this.getStrategiesByPath();
8713287133 // Find merged release pull requests
8713387134 const generator = await this.findMergedReleasePullRequests();
87134- const releases = [];
87135+ const candidateReleases = [];
8713587136 for await (const pullRequest of generator) {
8713687137 for (const path in this.repositoryConfig) {
8713787138 const config = this.repositoryConfig[path];
8713887139 this.logger.info(`Building release for path: ${path}`);
8713987140 this.logger.debug(`type: ${config.releaseType}`);
8714087141 this.logger.debug(`targetBranch: ${this.targetBranch}`);
8714187142 const strategy = strategiesByPath[path];
87142- const release = await strategy.buildRelease (pullRequest, {
87143+ const releases = await strategy.buildReleases (pullRequest, {
8714387144 groupPullRequestTitlePattern: this.groupPullRequestTitlePattern,
8714487145 });
87145- if ( release) {
87146- releases .push({
87146+ for (const release of releases ) {
87147+ candidateReleases .push({
8714787148 ...release,
8714887149 path,
8714987150 pullRequest,
@@ -87153,12 +87154,9 @@ class Manifest {
8715387154 release.tag.version.major === 0),
8715487155 });
8715587156 }
87156- else {
87157- this.logger.info(`No release necessary for path: ${path}`);
87158- }
8715987157 }
8716087158 }
87161- return releases ;
87159+ return candidateReleases ;
8716287160 }
8716387161 /**
8716487162 * Find merged, untagged releases. For each release, create a GitHub release,
@@ -87641,8 +87639,6 @@ class ManifestPlugin {
8764187639 * @param {Commit[]} commits The set of commits that will feed into release pull request.
8764287640 * @returns {Commit[]} The modified commit objects.
8764387641 */
87644- // TODO: for next major version, let's run the default conventional commit parser earlier
87645- // (outside of the strategy classes) and pass in the ConventionalCommit[] objects in.
8764687642 processCommits(commits) {
8764787643 return commits;
8764887644 }
@@ -88089,6 +88085,7 @@ function groupCandidatesByType(inScopeCandidates) {
8808988085Object.defineProperty(exports, "__esModule", ({ value: true }));
8809088086exports.LinkedVersions = void 0;
8809188087const plugin_1 = __nccwpck_require__(31651);
88088+ const commit_1 = __nccwpck_require__(69158);
8809288089const factory_1 = __nccwpck_require__(75695);
8809388090const merge_1 = __nccwpck_require__(90514);
8809488091/**
@@ -88129,7 +88126,7 @@ class LinkedVersions extends plugin_1.ManifestPlugin {
8812988126 for (const path in groupStrategies) {
8813088127 const strategy = groupStrategies[path];
8813188128 const latestRelease = releasesByPath[path];
88132- const releasePullRequest = await strategy.buildReleasePullRequest(commitsByPath[path], latestRelease);
88129+ const releasePullRequest = await strategy.buildReleasePullRequest((0, commit_1.parseConventionalCommits)( commitsByPath[path], this.logger) , latestRelease);
8813388130 if (releasePullRequest === null || releasePullRequest === void 0 ? void 0 : releasePullRequest.version) {
8813488131 groupVersions[path] = releasePullRequest.version;
8813588132 }
@@ -89083,6 +89080,9 @@ class SentenceCase extends plugin_1.ManifestPlugin {
8908389080 processCommits(commits) {
8908489081 this.logger.info(`SentenceCase processing ${commits.length} commits`);
8908589082 for (const commit of commits) {
89083+ // The parsed conventional commit message, without the type:
89084+ console.info(commit.bareMessage);
89085+ commit.bareMessage = this.toUpperCase(commit.bareMessage);
8908689086 // Check whether commit is in conventional commit format, if it is
8908789087 // we'll split the string by type and description:
8908889088 if (commit.message.includes(':')) {
@@ -89465,7 +89465,6 @@ exports.BaseStrategy = void 0;
8946589465const manifest_1 = __nccwpck_require__(31999);
8946689466const default_1 = __nccwpck_require__(94073);
8946789467const default_2 = __nccwpck_require__(71480);
89468- const commit_1 = __nccwpck_require__(69158);
8946989468const version_1 = __nccwpck_require__(17348);
8947089469const tag_name_1 = __nccwpck_require__(36503);
8947189470const logger_1 = __nccwpck_require__(68809);
@@ -89587,7 +89586,7 @@ class BaseStrategy {
8958789586 * open a pull request.
8958889587 */
8958989588 async buildReleasePullRequest(commits, latestRelease, draft, labels = []) {
89590- const conventionalCommits = await this.postProcessCommits((0, commit_1.parseConventionalCommits)( commits, this.logger) );
89589+ const conventionalCommits = await this.postProcessCommits(commits);
8959189590 this.logger.info(`Considering: ${conventionalCommits.length} commits`);
8959289591 if (conventionalCommits.length === 0) {
8959389592 this.logger.info(`No commits for path: ${this.path}, skipping`);
@@ -89735,6 +89734,7 @@ class BaseStrategy {
8973589734 * Given a merged pull request, build the candidate release.
8973689735 * @param {PullRequest} mergedPullRequest The merged release pull request.
8973789736 * @returns {Release} The candidate release.
89737+ * @deprecated Use buildReleases() instead.
8973889738 */
8973989739 async buildRelease(mergedPullRequest, options) {
8974089740 var _a;
@@ -89813,6 +89813,18 @@ class BaseStrategy {
8981389813 sha: mergedPullRequest.sha,
8981489814 };
8981589815 }
89816+ /**
89817+ * Given a merged pull request, build the candidate releases.
89818+ * @param {PullRequest} mergedPullRequest The merged release pull request.
89819+ * @returns {Release} The candidate release.
89820+ */
89821+ async buildReleases(mergedPullRequest, options) {
89822+ const release = await this.buildRelease(mergedPullRequest, options);
89823+ if (release) {
89824+ return [release];
89825+ }
89826+ return [];
89827+ }
8981689828 isPublishedVersion(_version) {
8981789829 return true;
8981889830 }
@@ -120760,7 +120772,7 @@ module.exports = {};
120760120772/***/ ((module) => {
120761120773
120762120774"use strict";
120763- module.exports = {"i8":"14.17.5 "};
120775+ module.exports = {"i8":"15.0.0 "};
120764120776
120765120777/***/ }),
120766120778
0 commit comments