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

Commit 56e7d78

Browse files
chore: build dist release-please-action (#371)
1 parent 9cd2fa8 commit 56e7d78

1 file changed

Lines changed: 20 additions & 14 deletions

File tree

dist/index.js

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ async function main () {
8787
const { token, fork, defaultBranch, apiUrl, repoUrl } = getGitHubInput()
8888

8989
const bumpMinorPreMajor = getBooleanInput('bump-minor-pre-major')
90+
const bumpPatchForMinorPreMajor = getBooleanInput('bump-patch-for-minor-pre-major')
9091
const monorepoTags = getBooleanInput('monorepo-tags')
9192
const packageName = core.getInput('package-name')
9293
const path = core.getInput('path') || undefined
@@ -135,6 +136,7 @@ async function main () {
135136
token,
136137
label: RELEASE_LABEL,
137138
bumpMinorPreMajor,
139+
bumpPatchForMinorPreMajor,
138140
changelogPath,
139141
changelogSections,
140142
versionFile,
@@ -8501,7 +8503,7 @@ exports.withCustomRequest = withCustomRequest;
85018503

85028504
Object.defineProperty(exports, "__esModule", ({ value: true }));
85038505

8504-
const VERSION = "2.16.0";
8506+
const VERSION = "2.16.3";
85058507

85068508
function ownKeys(object, enumerableOnly) {
85078509
var keys = Object.keys(object);
@@ -9930,7 +9932,7 @@ const Endpoints = {
99309932
}
99319933
};
99329934

9933-
const VERSION = "5.10.0";
9935+
const VERSION = "5.10.4";
99349936

99359937
function endpointsToMethods(octokit, endpointsMap) {
99369938
const newMethods = {};
@@ -59819,12 +59821,13 @@ exports.CommitSplit = CommitSplit;
5981959821
// See the License for the specific language governing permissions and
5982059822
// limitations under the License.
5982159823
Object.defineProperty(exports, "__esModule", ({ value: true }));
59822-
exports.RELEASE_PLEASE_MANIFEST = exports.RELEASE_PLEASE_CONFIG = exports.RELEASE_PLEASE = exports.GH_API_URL = exports.DEFAULT_LABELS = void 0;
59824+
exports.MAX_ISSUE_BODY_SIZE = exports.RELEASE_PLEASE_MANIFEST = exports.RELEASE_PLEASE_CONFIG = exports.RELEASE_PLEASE = exports.GH_API_URL = exports.DEFAULT_LABELS = void 0;
5982359825
exports.DEFAULT_LABELS = ['autorelease: pending'];
5982459826
exports.GH_API_URL = 'https://api.github.com';
5982559827
exports.RELEASE_PLEASE = 'release-please';
5982659828
exports.RELEASE_PLEASE_CONFIG = `${exports.RELEASE_PLEASE}-config.json`;
5982759829
exports.RELEASE_PLEASE_MANIFEST = `.${exports.RELEASE_PLEASE}-manifest.json`;
59830+
exports.MAX_ISSUE_BODY_SIZE = 65536;
5982859831
//# sourceMappingURL=constants.js.map
5982959832

5983059833
/***/ }),
@@ -60659,7 +60662,7 @@ class GitHub {
6065960662
upstreamRepo: this.repo,
6066060663
title: options.title,
6066160664
branch: options.branch,
60662-
description: options.body,
60665+
description: options.body.slice(0, constants_1.MAX_ISSUE_BODY_SIZE),
6066360666
primary: defaultBranch,
6066460667
force: true,
6066560668
fork: this.fork,
@@ -65397,27 +65400,27 @@ class Python extends release_pr_1.ReleasePR {
6539765400
}));
6539865401
const parsedPyProject = await this.getPyProject();
6539965402
const pyProject = (parsedPyProject === null || parsedPyProject === void 0 ? void 0 : parsedPyProject.project) || ((_a = parsedPyProject === null || parsedPyProject === void 0 ? void 0 : parsedPyProject.tool) === null || _a === void 0 ? void 0 : _a.poetry);
65403+
let projectName = packageName.name;
6540065404
if (pyProject) {
6540165405
updates.push(new pyproject_toml_1.PyProjectToml({
6540265406
path: this.addPath('pyproject.toml'),
6540365407
changelogEntry,
6540465408
version: candidate.version,
6540565409
packageName: packageName.name,
6540665410
}));
65407-
if (pyProject.name) {
65408-
updates.push(new python_file_with_version_1.PythonFileWithVersion({
65409-
path: this.addPath(`${pyProject.name}/__init__.py`),
65410-
changelogEntry,
65411-
version: candidate.version,
65412-
packageName: packageName.name,
65413-
}));
65414-
}
65411+
projectName = pyProject.name;
6541565412
}
6541665413
else {
6541765414
logger_1.logger.warn(parsedPyProject
6541865415
? 'invalid pyproject.toml'
6541965416
: `file ${chalk.green('pyproject.toml')} did not exist`);
6542065417
}
65418+
updates.push(new python_file_with_version_1.PythonFileWithVersion({
65419+
path: this.addPath(`${projectName}/__init__.py`),
65420+
changelogEntry,
65421+
version: candidate.version,
65422+
packageName: packageName.name,
65423+
}));
6542165424
// There should be only one version.py, but foreach in case that is incorrect
6542265425
const versionPyFilesSearch = this.gh.findFilesByFilename('version.py', this.path);
6542365426
const versionPyFiles = await versionPyFilesSearch;
@@ -65633,14 +65636,17 @@ class Ruby extends release_pr_1.ReleasePR {
6563365636
}
6563465637
async buildUpdates(changelogEntry, candidate, packageName) {
6563565638
const updates = [];
65639+
const versionFile = this.versionFile
65640+
? this.versionFile
65641+
: `lib/${packageName.name.replace(/-/g, '/')}/version.rb`;
6563665642
updates.push(new changelog_1.Changelog({
6563765643
path: this.addPath(this.changelogPath),
6563865644
changelogEntry,
6563965645
version: candidate.version,
6564065646
packageName: packageName.name,
6564165647
}));
6564265648
updates.push(new version_rb_1.VersionRB({
65643-
path: this.addPath(this.versionFile),
65649+
path: this.addPath(versionFile),
6564465650
changelogEntry,
6564565651
version: candidate.version,
6564665652
packageName: packageName.name,
@@ -86182,7 +86188,7 @@ module.exports = JSON.parse("[\"assert\",\"buffer\",\"child_process\",\"cluster\
8618286188
/***/ ((module) => {
8618386189

8618486190
"use strict";
86185-
module.exports = {"i8":"11.23.0"};
86191+
module.exports = {"i8":"11.24.2"};
8618686192

8618786193
/***/ }),
8618886194

0 commit comments

Comments
 (0)