Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
chore: build dist release-please-action (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
google-github-actions-bot authored May 2, 2022
1 parent 2d1c441 commit 773ba3c
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81577,6 +81577,7 @@ function extractReleaserConfig(config) {
bumpPatchForMinorPreMajor: config['bump-patch-for-minor-pre-major'],
changelogSections: config['changelog-sections'],
changelogPath: config['changelog-path'],
changelogHost: config['changelog-host'],
releaseAs: config['release-as'],
skipGithubRelease: config['skip-github-release'],
draft: config.draft,
Expand Down Expand Up @@ -81749,25 +81750,26 @@ async function latestReleaseVersion(github, targetBranch, releaseFilter, prefix,
return candidateTagVersion.sort((a, b) => b.compare(a))[0];
}
function mergeReleaserConfig(defaultConfig, pathConfig) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
return {
releaseType: (_b = (_a = pathConfig.releaseType) !== null && _a !== void 0 ? _a : defaultConfig.releaseType) !== null && _b !== void 0 ? _b : 'node',
bumpMinorPreMajor: (_c = pathConfig.bumpMinorPreMajor) !== null && _c !== void 0 ? _c : defaultConfig.bumpMinorPreMajor,
bumpPatchForMinorPreMajor: (_d = pathConfig.bumpPatchForMinorPreMajor) !== null && _d !== void 0 ? _d : defaultConfig.bumpPatchForMinorPreMajor,
changelogSections: (_e = pathConfig.changelogSections) !== null && _e !== void 0 ? _e : defaultConfig.changelogSections,
changelogPath: (_f = pathConfig.changelogPath) !== null && _f !== void 0 ? _f : defaultConfig.changelogPath,
releaseAs: (_g = pathConfig.releaseAs) !== null && _g !== void 0 ? _g : defaultConfig.releaseAs,
skipGithubRelease: (_h = pathConfig.skipGithubRelease) !== null && _h !== void 0 ? _h : defaultConfig.skipGithubRelease,
draft: (_j = pathConfig.draft) !== null && _j !== void 0 ? _j : defaultConfig.draft,
prerelease: (_k = pathConfig.prerelease) !== null && _k !== void 0 ? _k : defaultConfig.prerelease,
component: (_l = pathConfig.component) !== null && _l !== void 0 ? _l : defaultConfig.component,
packageName: (_m = pathConfig.packageName) !== null && _m !== void 0 ? _m : defaultConfig.packageName,
versionFile: (_o = pathConfig.versionFile) !== null && _o !== void 0 ? _o : defaultConfig.versionFile,
extraFiles: (_p = pathConfig.extraFiles) !== null && _p !== void 0 ? _p : defaultConfig.extraFiles,
includeComponentInTag: (_q = pathConfig.includeComponentInTag) !== null && _q !== void 0 ? _q : defaultConfig.includeComponentInTag,
includeVInTag: (_r = pathConfig.includeVInTag) !== null && _r !== void 0 ? _r : defaultConfig.includeVInTag,
tagSeparator: (_s = pathConfig.tagSeparator) !== null && _s !== void 0 ? _s : defaultConfig.tagSeparator,
pullRequestTitlePattern: (_t = pathConfig.pullRequestTitlePattern) !== null && _t !== void 0 ? _t : defaultConfig.pullRequestTitlePattern,
changelogHost: (_g = pathConfig.changelogHost) !== null && _g !== void 0 ? _g : defaultConfig.changelogHost,
releaseAs: (_h = pathConfig.releaseAs) !== null && _h !== void 0 ? _h : defaultConfig.releaseAs,
skipGithubRelease: (_j = pathConfig.skipGithubRelease) !== null && _j !== void 0 ? _j : defaultConfig.skipGithubRelease,
draft: (_k = pathConfig.draft) !== null && _k !== void 0 ? _k : defaultConfig.draft,
prerelease: (_l = pathConfig.prerelease) !== null && _l !== void 0 ? _l : defaultConfig.prerelease,
component: (_m = pathConfig.component) !== null && _m !== void 0 ? _m : defaultConfig.component,
packageName: (_o = pathConfig.packageName) !== null && _o !== void 0 ? _o : defaultConfig.packageName,
versionFile: (_p = pathConfig.versionFile) !== null && _p !== void 0 ? _p : defaultConfig.versionFile,
extraFiles: (_q = pathConfig.extraFiles) !== null && _q !== void 0 ? _q : defaultConfig.extraFiles,
includeComponentInTag: (_r = pathConfig.includeComponentInTag) !== null && _r !== void 0 ? _r : defaultConfig.includeComponentInTag,
includeVInTag: (_s = pathConfig.includeVInTag) !== null && _s !== void 0 ? _s : defaultConfig.includeVInTag,
tagSeparator: (_t = pathConfig.tagSeparator) !== null && _t !== void 0 ? _t : defaultConfig.tagSeparator,
pullRequestTitlePattern: (_u = pathConfig.pullRequestTitlePattern) !== null && _u !== void 0 ? _u : defaultConfig.pullRequestTitlePattern,
};
}
/**
Expand Down Expand Up @@ -82951,6 +82953,7 @@ class BaseStrategy {
this.targetBranch = options.targetBranch;
this.repository = options.github.repository;
this.changelogPath = options.changelogPath || DEFAULT_CHANGELOG_PATH;
this.changelogHost = options.changelogHost;
this.changelogSections = options.changelogSections;
this.tagSeparator = options.tagSeparator;
this.skipGitHubRelease = options.skipGitHubRelease || false;
Expand Down Expand Up @@ -83001,6 +83004,7 @@ class BaseStrategy {
async buildReleaseNotes(conventionalCommits, newVersion, newVersionTag, latestRelease, commits) {
var _a;
return await this.changelogNotes.buildNotes(conventionalCommits, {
host: this.changelogHost,
owner: this.repository.owner,
repository: this.repository.repo,
version: newVersion.toString(),
Expand Down Expand Up @@ -84523,6 +84527,7 @@ class PHPYoshi extends base_1.BaseStrategy {
const newVersion = await this.versioningStrategy.bump(version, splitCommits[directory]);
versionsMap.set(composer.name, newVersion);
const partialReleaseNotes = await this.changelogNotes.buildNotes(splitCommits[directory], {
host: this.changelogHost,
owner: this.repository.owner,
repository: this.repository.repo,
version: newVersion.toString(),
Expand Down Expand Up @@ -113460,7 +113465,7 @@ module.exports = {};
/***/ ((module) => {

"use strict";
module.exports = {"i8":"13.14.0"};
module.exports = {"i8":"13.15.0"};

/***/ }),

Expand Down

0 comments on commit 773ba3c

Please sign in to comment.