mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-09 08:01:17 +02:00
committed by
GitHub
parent
c8f107f4cf
commit
81a2512e00
119
dist/index.js
vendored
119
dist/index.js
vendored
@@ -84452,12 +84452,15 @@ class DefaultChangelogNotes {
|
||||
preset.writerOpts.mainTemplate =
|
||||
this.mainTemplate || preset.writerOpts.mainTemplate;
|
||||
const changelogCommits = commits.map(commit => {
|
||||
const notes = commit.notes
|
||||
.filter(note => note.title === 'BREAKING CHANGE')
|
||||
.map(note => replaceIssueLink(note, context.host, context.owner, context.repository));
|
||||
return {
|
||||
body: '',
|
||||
subject: htmlEscape(commit.bareMessage),
|
||||
type: commit.type,
|
||||
scope: commit.scope,
|
||||
notes: commit.notes.filter(note => note.title === 'BREAKING CHANGE'),
|
||||
notes,
|
||||
references: commit.references,
|
||||
mentions: [],
|
||||
merge: null,
|
||||
@@ -84476,6 +84479,10 @@ class DefaultChangelogNotes {
|
||||
}
|
||||
}
|
||||
exports.DefaultChangelogNotes = DefaultChangelogNotes;
|
||||
function replaceIssueLink(note, host, owner, repo) {
|
||||
note.text = note.text.replace(/\(#(\d+)\)/, `([#$1](${host}/${owner}/${repo}/issues/$1))`);
|
||||
return note;
|
||||
}
|
||||
function htmlEscape(message) {
|
||||
return message.replace('<', '<').replace('>', '>');
|
||||
}
|
||||
@@ -85112,11 +85119,15 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getVersioningStrategyTypes = exports.unregisterVersioningStrategy = exports.registerVersioningStrategy = exports.buildVersioningStrategy = void 0;
|
||||
const default_1 = __nccwpck_require__(94073);
|
||||
const always_bump_patch_1 = __nccwpck_require__(82926);
|
||||
const always_bump_minor_1 = __nccwpck_require__(9657);
|
||||
const always_bump_major_1 = __nccwpck_require__(51346);
|
||||
const service_pack_1 = __nccwpck_require__(56772);
|
||||
const errors_1 = __nccwpck_require__(93637);
|
||||
const versioningTypes = {
|
||||
default: options => new default_1.DefaultVersioningStrategy(options),
|
||||
'always-bump-patch': options => new always_bump_patch_1.AlwaysBumpPatch(options),
|
||||
'always-bump-minor': options => new always_bump_minor_1.AlwaysBumpMinor(options),
|
||||
'always-bump-major': options => new always_bump_major_1.AlwaysBumpMajor(options),
|
||||
'service-pack': options => new service_pack_1.ServicePackVersioningStrategy(options),
|
||||
};
|
||||
function buildVersioningStrategy(options) {
|
||||
@@ -88875,7 +88886,7 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
|
||||
return existingCandidate;
|
||||
}
|
||||
newCandidate(pkg, updatedVersions) {
|
||||
var _a;
|
||||
var _a, _b;
|
||||
const graphPackage = (_a = this.packageGraph) === null || _a === void 0 ? void 0 : _a.get(pkg.name);
|
||||
if (!graphPackage) {
|
||||
throw new Error(`Could not find graph package for ${pkg.name}`);
|
||||
@@ -88890,8 +88901,12 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
|
||||
for (const [depName, resolved] of graphPackage.localDependencies) {
|
||||
const depVersion = updatedVersions.get(depName);
|
||||
if (depVersion && resolved.type !== 'directory') {
|
||||
updatedPackage.updateLocalDependency(resolved, depVersion.toString(), '^');
|
||||
this.logger.info(`${pkg.name}.${depName} updated to ^${depVersion.toString()}`);
|
||||
const currentVersion = (_b = this.combineDeps(pkg)) === null || _b === void 0 ? void 0 : _b[depName];
|
||||
const prefix = currentVersion
|
||||
? this.detectRangePrefix(currentVersion)
|
||||
: '';
|
||||
updatedPackage.updateLocalDependency(resolved, depVersion.toString(), prefix);
|
||||
this.logger.info(`${pkg.name}.${depName} updated to ${prefix}${depVersion.toString()}`);
|
||||
}
|
||||
}
|
||||
const dependencyNotes = getChangelogDepsNotes(pkg, updatedPackage);
|
||||
@@ -89858,6 +89873,7 @@ const yaml = __nccwpck_require__(21917);
|
||||
// pubspec
|
||||
const pubspec_yaml_1 = __nccwpck_require__(62861);
|
||||
const base_1 = __nccwpck_require__(95081);
|
||||
const errors_1 = __nccwpck_require__(93637);
|
||||
class Dart extends base_1.BaseStrategy {
|
||||
async buildUpdates(options) {
|
||||
const updates = [];
|
||||
@@ -89892,7 +89908,15 @@ class Dart extends base_1.BaseStrategy {
|
||||
}
|
||||
async getPubspecYmlContents() {
|
||||
if (!this.pubspecYmlContents) {
|
||||
this.pubspecYmlContents = await this.github.getFileContentsOnBranch(this.addPath('pubspec.yaml'), this.targetBranch);
|
||||
try {
|
||||
this.pubspecYmlContents = await this.github.getFileContentsOnBranch(this.addPath('pubspec.yaml'), this.targetBranch);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof errors_1.FileNotFoundError) {
|
||||
throw new errors_1.MissingRequiredFileError(this.addPath('pubspec.yaml'), Dart.name, `${this.repository.owner}/${this.repository.repo}`);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
return this.pubspecYmlContents;
|
||||
}
|
||||
@@ -90367,6 +90391,7 @@ const yaml = __nccwpck_require__(21917);
|
||||
// helm
|
||||
const chart_yaml_1 = __nccwpck_require__(88368);
|
||||
const base_1 = __nccwpck_require__(95081);
|
||||
const errors_1 = __nccwpck_require__(93637);
|
||||
class Helm extends base_1.BaseStrategy {
|
||||
async buildUpdates(options) {
|
||||
const updates = [];
|
||||
@@ -90401,7 +90426,15 @@ class Helm extends base_1.BaseStrategy {
|
||||
}
|
||||
async getChartYmlContents() {
|
||||
if (!this.chartYmlContents) {
|
||||
this.chartYmlContents = await this.github.getFileContents(this.addPath('Chart.yaml'));
|
||||
try {
|
||||
this.chartYmlContents = await this.github.getFileContents(this.addPath('Chart.yaml'));
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof errors_1.FileNotFoundError) {
|
||||
throw new errors_1.MissingRequiredFileError(this.addPath('Chart.yaml'), Helm.name, `${this.repository.owner}/${this.repository.repo}`);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
return this.chartYmlContents;
|
||||
}
|
||||
@@ -94378,7 +94411,6 @@ function getAllResourceNames() {
|
||||
];
|
||||
}
|
||||
class BranchName {
|
||||
constructor(_branchName) { }
|
||||
static parse(branchName, logger = logger_1.logger) {
|
||||
try {
|
||||
const branchNameClass = getAllResourceNames().find(clazz => {
|
||||
@@ -94406,6 +94438,7 @@ class BranchName {
|
||||
static ofComponentTargetBranch(component, targetBranch) {
|
||||
return new ComponentBranchName(`${RELEASE_PLEASE}--branches--${targetBranch}--components--${component}`);
|
||||
}
|
||||
constructor(_branchName) { }
|
||||
static matches(_branchName) {
|
||||
return false;
|
||||
}
|
||||
@@ -95459,6 +95492,76 @@ exports.Version = Version;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 51346:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Copyright 2022 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.AlwaysBumpMajor = void 0;
|
||||
const default_1 = __nccwpck_require__(94073);
|
||||
const versioning_strategy_1 = __nccwpck_require__(41941);
|
||||
/**
|
||||
* This VersioningStrategy always bumps the major version.
|
||||
*/
|
||||
class AlwaysBumpMajor extends default_1.DefaultVersioningStrategy {
|
||||
determineReleaseType(_version, _commits) {
|
||||
return new versioning_strategy_1.MajorVersionUpdate();
|
||||
}
|
||||
}
|
||||
exports.AlwaysBumpMajor = AlwaysBumpMajor;
|
||||
//# sourceMappingURL=always-bump-major.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9657:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Copyright 2022 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.AlwaysBumpMinor = void 0;
|
||||
const default_1 = __nccwpck_require__(94073);
|
||||
const versioning_strategy_1 = __nccwpck_require__(41941);
|
||||
/**
|
||||
* This VersioningStrategy always bumps the minor version.
|
||||
*/
|
||||
class AlwaysBumpMinor extends default_1.DefaultVersioningStrategy {
|
||||
determineReleaseType(_version, _commits) {
|
||||
return new versioning_strategy_1.MinorVersionUpdate();
|
||||
}
|
||||
}
|
||||
exports.AlwaysBumpMinor = AlwaysBumpMinor;
|
||||
//# sourceMappingURL=always-bump-minor.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 82926:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
@@ -120650,7 +120753,7 @@ module.exports = {};
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = {"i8":"14.16.0"};
|
||||
module.exports = {"i8":"14.17.2"};
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user