release-please 17.0.0 → 17.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- package/build/src/factory.js +1 -0
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +1 -1
- package/build/src/manifest.d.ts +2 -0
- package/build/src/manifest.js +23 -21
- package/build/src/strategies/base.d.ts +3 -0
- package/build/src/strategies/base.js +2 -0
- package/build/src/strategies/bazel.js +9 -8
- package/build/src/strategies/dart.js +9 -8
- package/build/src/strategies/dotnet-yoshi.js +10 -9
- package/build/src/strategies/elixir.js +9 -8
- package/build/src/strategies/go-yoshi.js +9 -8
- package/build/src/strategies/go.d.ts +3 -1
- package/build/src/strategies/go.js +25 -8
- package/build/src/strategies/helm.js +9 -8
- package/build/src/strategies/java-yoshi-mono-repo.js +9 -8
- package/build/src/strategies/java-yoshi.js +1 -1
- package/build/src/strategies/java.js +10 -8
- package/build/src/strategies/krm-blueprint.js +9 -8
- package/build/src/strategies/node.js +10 -9
- package/build/src/strategies/ocaml.js +9 -8
- package/build/src/strategies/php-yoshi.js +10 -8
- package/build/src/strategies/php.js +9 -8
- package/build/src/strategies/python.js +10 -9
- package/build/src/strategies/ruby-yoshi.js +9 -8
- package/build/src/strategies/ruby.js +9 -8
- package/build/src/strategies/rust.js +9 -8
- package/build/src/strategies/sfdx.js +9 -8
- package/build/src/strategies/simple.js +9 -8
- package/build/src/strategies/terraform-module.js +9 -8
- package/build/src/updaters/release-please-config.js +1 -0
- package/package.json +1 -1
- package/schemas/config.json +7 -7
- package/CHANGELOG.md +0 -3045
- package/build/src/updaters/changelog.js.map +0 -1
- package/build/src/updaters/terraform/readme.js.map +0 -1
package/README.md
CHANGED
|
@@ -214,13 +214,6 @@ The easiest way to run Release Please is as a GitHub action. Please see [googlea
|
|
|
214
214
|
|
|
215
215
|
Please see [Running release-please CLI](docs/cli.md) for all the configuration options.
|
|
216
216
|
|
|
217
|
-
### Install the GitHub App
|
|
218
|
-
|
|
219
|
-
There is a probot application available, which allows you to deploy Release
|
|
220
|
-
Please as a GitHub App. Please see
|
|
221
|
-
[github.com/googleapis/repo-automation-bots](https://github.com/googleapis/repo-automation-bots/tree/main/packages/release-please)
|
|
222
|
-
for installation and configuration instructions.
|
|
223
|
-
|
|
224
217
|
## Bootstrapping your Repository
|
|
225
218
|
|
|
226
219
|
Release Please looks at commits since your last release tag. It may or may not be able to find
|
package/build/src/factory.js
CHANGED
package/build/src/index.d.ts
CHANGED
package/build/src/index.js
CHANGED
|
@@ -36,6 +36,6 @@ Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () {
|
|
|
36
36
|
exports.configSchema = require('../../schemas/config.json');
|
|
37
37
|
exports.manifestSchema = require('../../schemas/manifest.json');
|
|
38
38
|
// x-release-please-start-version
|
|
39
|
-
exports.VERSION = '17.
|
|
39
|
+
exports.VERSION = '17.1.0';
|
|
40
40
|
// x-release-please-end
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
package/build/src/manifest.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export interface ReleaserConfig {
|
|
|
53
53
|
prereleaseType?: string;
|
|
54
54
|
releaseAs?: string;
|
|
55
55
|
skipGithubRelease?: boolean;
|
|
56
|
+
skipChangelog?: boolean;
|
|
56
57
|
draft?: boolean;
|
|
57
58
|
prerelease?: boolean;
|
|
58
59
|
draftPullRequest?: boolean;
|
|
@@ -101,6 +102,7 @@ interface ReleaserConfigJson {
|
|
|
101
102
|
'changelog-sections'?: ChangelogSection[];
|
|
102
103
|
'release-as'?: string;
|
|
103
104
|
'skip-github-release'?: boolean;
|
|
105
|
+
'skip-changelog'?: boolean;
|
|
104
106
|
draft?: boolean;
|
|
105
107
|
prerelease?: boolean;
|
|
106
108
|
'draft-pull-request'?: boolean;
|
package/build/src/manifest.js
CHANGED
|
@@ -817,6 +817,7 @@ function extractReleaserConfig(config) {
|
|
|
817
817
|
changelogHost: config['changelog-host'],
|
|
818
818
|
releaseAs: config['release-as'],
|
|
819
819
|
skipGithubRelease: config['skip-github-release'],
|
|
820
|
+
skipChangelog: config['skip-changelog'],
|
|
820
821
|
draft: config.draft,
|
|
821
822
|
prerelease: config.prerelease,
|
|
822
823
|
draftPullRequest: config['draft-pull-request'],
|
|
@@ -1053,7 +1054,7 @@ async function latestReleaseVersion(github, targetBranch, releaseFilter, config,
|
|
|
1053
1054
|
return candidateTagVersion.sort((a, b) => b.compare(a))[0];
|
|
1054
1055
|
}
|
|
1055
1056
|
function mergeReleaserConfig(defaultConfig, pathConfig) {
|
|
1056
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
|
|
1057
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
|
|
1057
1058
|
return {
|
|
1058
1059
|
releaseType: (_b = (_a = pathConfig.releaseType) !== null && _a !== void 0 ? _a : defaultConfig.releaseType) !== null && _b !== void 0 ? _b : 'node',
|
|
1059
1060
|
bumpMinorPreMajor: (_c = pathConfig.bumpMinorPreMajor) !== null && _c !== void 0 ? _c : defaultConfig.bumpMinorPreMajor,
|
|
@@ -1066,26 +1067,27 @@ function mergeReleaserConfig(defaultConfig, pathConfig) {
|
|
|
1066
1067
|
changelogType: (_k = pathConfig.changelogType) !== null && _k !== void 0 ? _k : defaultConfig.changelogType,
|
|
1067
1068
|
releaseAs: (_l = pathConfig.releaseAs) !== null && _l !== void 0 ? _l : defaultConfig.releaseAs,
|
|
1068
1069
|
skipGithubRelease: (_m = pathConfig.skipGithubRelease) !== null && _m !== void 0 ? _m : defaultConfig.skipGithubRelease,
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1070
|
+
skipChangelog: (_o = pathConfig.skipChangelog) !== null && _o !== void 0 ? _o : defaultConfig.skipChangelog,
|
|
1071
|
+
draft: (_p = pathConfig.draft) !== null && _p !== void 0 ? _p : defaultConfig.draft,
|
|
1072
|
+
draftPullRequest: (_q = pathConfig.draftPullRequest) !== null && _q !== void 0 ? _q : defaultConfig.draftPullRequest,
|
|
1073
|
+
prerelease: (_r = pathConfig.prerelease) !== null && _r !== void 0 ? _r : defaultConfig.prerelease,
|
|
1074
|
+
component: (_s = pathConfig.component) !== null && _s !== void 0 ? _s : defaultConfig.component,
|
|
1075
|
+
packageName: (_t = pathConfig.packageName) !== null && _t !== void 0 ? _t : defaultConfig.packageName,
|
|
1076
|
+
versionFile: (_u = pathConfig.versionFile) !== null && _u !== void 0 ? _u : defaultConfig.versionFile,
|
|
1077
|
+
extraFiles: (_v = pathConfig.extraFiles) !== null && _v !== void 0 ? _v : defaultConfig.extraFiles,
|
|
1078
|
+
includeComponentInTag: (_w = pathConfig.includeComponentInTag) !== null && _w !== void 0 ? _w : defaultConfig.includeComponentInTag,
|
|
1079
|
+
includeVInTag: (_x = pathConfig.includeVInTag) !== null && _x !== void 0 ? _x : defaultConfig.includeVInTag,
|
|
1080
|
+
tagSeparator: (_y = pathConfig.tagSeparator) !== null && _y !== void 0 ? _y : defaultConfig.tagSeparator,
|
|
1081
|
+
pullRequestTitlePattern: (_z = pathConfig.pullRequestTitlePattern) !== null && _z !== void 0 ? _z : defaultConfig.pullRequestTitlePattern,
|
|
1082
|
+
pullRequestHeader: (_0 = pathConfig.pullRequestHeader) !== null && _0 !== void 0 ? _0 : defaultConfig.pullRequestHeader,
|
|
1083
|
+
pullRequestFooter: (_1 = pathConfig.pullRequestFooter) !== null && _1 !== void 0 ? _1 : defaultConfig.pullRequestFooter,
|
|
1084
|
+
componentNoSpace: (_2 = pathConfig.componentNoSpace) !== null && _2 !== void 0 ? _2 : defaultConfig.componentNoSpace,
|
|
1085
|
+
separatePullRequests: (_3 = pathConfig.separatePullRequests) !== null && _3 !== void 0 ? _3 : defaultConfig.separatePullRequests,
|
|
1086
|
+
skipSnapshot: (_4 = pathConfig.skipSnapshot) !== null && _4 !== void 0 ? _4 : defaultConfig.skipSnapshot,
|
|
1087
|
+
initialVersion: (_5 = pathConfig.initialVersion) !== null && _5 !== void 0 ? _5 : defaultConfig.initialVersion,
|
|
1088
|
+
extraLabels: (_6 = pathConfig.extraLabels) !== null && _6 !== void 0 ? _6 : defaultConfig.extraLabels,
|
|
1089
|
+
excludePaths: (_7 = pathConfig.excludePaths) !== null && _7 !== void 0 ? _7 : defaultConfig.excludePaths,
|
|
1090
|
+
dateFormat: (_8 = pathConfig.dateFormat) !== null && _8 !== void 0 ? _8 : defaultConfig.dateFormat,
|
|
1089
1091
|
};
|
|
1090
1092
|
}
|
|
1091
1093
|
/**
|
|
@@ -15,6 +15,7 @@ import { PullRequestBody } from '../util/pull-request-body';
|
|
|
15
15
|
import { PullRequest } from '../pull-request';
|
|
16
16
|
export interface BuildUpdatesOptions {
|
|
17
17
|
changelogEntry: string;
|
|
18
|
+
skipChangelog?: boolean;
|
|
18
19
|
commits?: ConventionalCommit[];
|
|
19
20
|
newVersion: Version;
|
|
20
21
|
versionsMap: VersionsMap;
|
|
@@ -37,6 +38,7 @@ export interface BaseStrategyOptions {
|
|
|
37
38
|
mainTemplate?: string;
|
|
38
39
|
tagSeparator?: string;
|
|
39
40
|
skipGitHubRelease?: boolean;
|
|
41
|
+
skipChangelog?: boolean;
|
|
40
42
|
releaseAs?: string;
|
|
41
43
|
changelogNotes?: ChangelogNotes;
|
|
42
44
|
includeComponentInTag?: boolean;
|
|
@@ -71,6 +73,7 @@ export declare abstract class BaseStrategy implements Strategy {
|
|
|
71
73
|
protected changelogHost?: string;
|
|
72
74
|
protected tagSeparator?: string;
|
|
73
75
|
private skipGitHubRelease;
|
|
76
|
+
protected skipChangelog: boolean;
|
|
74
77
|
private releaseAs?;
|
|
75
78
|
protected includeComponentInTag: boolean;
|
|
76
79
|
protected includeVInTag: boolean;
|
|
@@ -54,6 +54,7 @@ class BaseStrategy {
|
|
|
54
54
|
this.changelogSections = options.changelogSections;
|
|
55
55
|
this.tagSeparator = options.tagSeparator;
|
|
56
56
|
this.skipGitHubRelease = options.skipGitHubRelease || false;
|
|
57
|
+
this.skipChangelog = options.skipChangelog || false;
|
|
57
58
|
this.releaseAs = options.releaseAs;
|
|
58
59
|
this.changelogNotes =
|
|
59
60
|
options.changelogNotes || new default_2.DefaultChangelogNotes(options);
|
|
@@ -171,6 +172,7 @@ class BaseStrategy {
|
|
|
171
172
|
}
|
|
172
173
|
const updates = await this.buildUpdates({
|
|
173
174
|
changelogEntry: releaseNotesBody,
|
|
175
|
+
skipChangelog: this.skipChangelog,
|
|
174
176
|
newVersion,
|
|
175
177
|
versionsMap,
|
|
176
178
|
latestVersion: latestRelease === null || latestRelease === void 0 ? void 0 : latestRelease.tag.version,
|
|
@@ -26,14 +26,15 @@ class Bazel extends base_1.BaseStrategy {
|
|
|
26
26
|
async buildUpdates(options) {
|
|
27
27
|
const updates = [];
|
|
28
28
|
const version = options.newVersion;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
!this.skipChangelog &&
|
|
30
|
+
updates.push({
|
|
31
|
+
path: this.addPath(this.changelogPath),
|
|
32
|
+
createIfMissing: true,
|
|
33
|
+
updater: new changelog_1.Changelog({
|
|
34
|
+
version,
|
|
35
|
+
changelogEntry: options.changelogEntry,
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
37
38
|
updates.push({
|
|
38
39
|
path: this.addPath(this.versionFile),
|
|
39
40
|
createIfMissing: false,
|
|
@@ -25,14 +25,15 @@ class Dart extends base_1.BaseStrategy {
|
|
|
25
25
|
async buildUpdates(options) {
|
|
26
26
|
const updates = [];
|
|
27
27
|
const version = options.newVersion;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
!this.skipChangelog &&
|
|
29
|
+
updates.push({
|
|
30
|
+
path: this.addPath(this.changelogPath),
|
|
31
|
+
createIfMissing: true,
|
|
32
|
+
updater: new changelog_1.Changelog({
|
|
33
|
+
version,
|
|
34
|
+
changelogEntry: options.changelogEntry,
|
|
35
|
+
}),
|
|
36
|
+
});
|
|
36
37
|
updates.push({
|
|
37
38
|
path: this.addPath('pubspec.yaml'),
|
|
38
39
|
createIfMissing: false,
|
|
@@ -82,15 +82,16 @@ class DotnetYoshi extends base_1.BaseStrategy {
|
|
|
82
82
|
this.logger.info(`Skipping changelog for ${component} via noVersionHistory configuration`);
|
|
83
83
|
}
|
|
84
84
|
else {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
!this.skipChangelog &&
|
|
86
|
+
updates.push({
|
|
87
|
+
path: this.addPath(this.changelogPath),
|
|
88
|
+
createIfMissing: true,
|
|
89
|
+
updater: new changelog_1.Changelog({
|
|
90
|
+
version,
|
|
91
|
+
changelogEntry: options.changelogEntry,
|
|
92
|
+
versionHeaderRegex: '\n## Version [0-9[]+',
|
|
93
|
+
}),
|
|
94
|
+
});
|
|
94
95
|
}
|
|
95
96
|
if (!component) {
|
|
96
97
|
this.logger.warn('Dotnet strategy expects to use components, could not update all files');
|
|
@@ -23,14 +23,15 @@ class Elixir extends base_1.BaseStrategy {
|
|
|
23
23
|
async buildUpdates(options) {
|
|
24
24
|
const updates = [];
|
|
25
25
|
const version = options.newVersion;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
!this.skipChangelog &&
|
|
27
|
+
updates.push({
|
|
28
|
+
path: this.addPath(this.changelogPath),
|
|
29
|
+
createIfMissing: true,
|
|
30
|
+
updater: new changelog_1.Changelog({
|
|
31
|
+
version,
|
|
32
|
+
changelogEntry: options.changelogEntry,
|
|
33
|
+
}),
|
|
34
|
+
});
|
|
34
35
|
updates.push({
|
|
35
36
|
path: this.addPath('mix.exs'),
|
|
36
37
|
createIfMissing: false,
|
|
@@ -46,14 +46,15 @@ class GoYoshi extends base_1.BaseStrategy {
|
|
|
46
46
|
async buildUpdates(options) {
|
|
47
47
|
const updates = [];
|
|
48
48
|
const version = options.newVersion;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
!this.skipChangelog &&
|
|
50
|
+
updates.push({
|
|
51
|
+
path: this.addPath(this.changelogPath),
|
|
52
|
+
createIfMissing: true,
|
|
53
|
+
updater: new changelog_1.Changelog({
|
|
54
|
+
version,
|
|
55
|
+
changelogEntry: options.changelogEntry,
|
|
56
|
+
}),
|
|
57
|
+
});
|
|
57
58
|
updates.push({
|
|
58
59
|
path: this.addPath('internal/version.go'),
|
|
59
60
|
createIfMissing: false,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { BaseStrategy, BuildUpdatesOptions } from './base';
|
|
1
|
+
import { BaseStrategy, BuildUpdatesOptions, BaseStrategyOptions } from './base';
|
|
2
2
|
import { Update } from '../update';
|
|
3
3
|
export declare class Go extends BaseStrategy {
|
|
4
|
+
readonly versionFile: string;
|
|
5
|
+
constructor(options: BaseStrategyOptions);
|
|
4
6
|
protected buildUpdates(options: BuildUpdatesOptions): Promise<Update[]>;
|
|
5
7
|
}
|
|
@@ -17,18 +17,35 @@ exports.Go = void 0;
|
|
|
17
17
|
// Generic
|
|
18
18
|
const changelog_1 = require("../updaters/changelog");
|
|
19
19
|
const base_1 = require("./base");
|
|
20
|
+
const version_go_1 = require("../updaters/go/version-go");
|
|
20
21
|
class Go extends base_1.BaseStrategy {
|
|
22
|
+
constructor(options) {
|
|
23
|
+
var _a;
|
|
24
|
+
super(options);
|
|
25
|
+
this.versionFile = (_a = options.versionFile) !== null && _a !== void 0 ? _a : '';
|
|
26
|
+
}
|
|
21
27
|
async buildUpdates(options) {
|
|
22
28
|
const updates = [];
|
|
23
29
|
const version = options.newVersion;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
!this.skipChangelog &&
|
|
31
|
+
updates.push({
|
|
32
|
+
path: this.addPath(this.changelogPath),
|
|
33
|
+
createIfMissing: true,
|
|
34
|
+
updater: new changelog_1.Changelog({
|
|
35
|
+
version,
|
|
36
|
+
changelogEntry: options.changelogEntry,
|
|
37
|
+
}),
|
|
38
|
+
});
|
|
39
|
+
// If a version file is specified, update it
|
|
40
|
+
if (this.versionFile) {
|
|
41
|
+
updates.push({
|
|
42
|
+
path: this.addPath(this.versionFile),
|
|
43
|
+
createIfMissing: false,
|
|
44
|
+
updater: new version_go_1.VersionGo({
|
|
45
|
+
version,
|
|
46
|
+
}),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
32
49
|
return updates;
|
|
33
50
|
}
|
|
34
51
|
}
|
|
@@ -25,14 +25,15 @@ class Helm extends base_1.BaseStrategy {
|
|
|
25
25
|
async buildUpdates(options) {
|
|
26
26
|
const updates = [];
|
|
27
27
|
const version = options.newVersion;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
!this.skipChangelog &&
|
|
29
|
+
updates.push({
|
|
30
|
+
path: this.addPath(this.changelogPath),
|
|
31
|
+
createIfMissing: true,
|
|
32
|
+
updater: new changelog_1.Changelog({
|
|
33
|
+
version,
|
|
34
|
+
changelogEntry: options.changelogEntry,
|
|
35
|
+
}),
|
|
36
|
+
});
|
|
36
37
|
updates.push({
|
|
37
38
|
path: this.addPath('Chart.yaml'),
|
|
38
39
|
createIfMissing: false,
|
|
@@ -149,14 +149,15 @@ class JavaYoshiMonoRepo extends java_1.Java {
|
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
151
|
if (!options.isSnapshot) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
152
|
+
!this.skipChangelog &&
|
|
153
|
+
updates.push({
|
|
154
|
+
path: this.addPath(this.changelogPath),
|
|
155
|
+
createIfMissing: true,
|
|
156
|
+
updater: new changelog_1.Changelog({
|
|
157
|
+
version,
|
|
158
|
+
changelogEntry: options.changelogEntry,
|
|
159
|
+
}),
|
|
160
|
+
});
|
|
160
161
|
// Bail early if the repository has no root changelog.json.
|
|
161
162
|
// This file is used to opt into machine readable commits.
|
|
162
163
|
const hasChangelogJson = await this.hasChangelogJson();
|
|
@@ -91,6 +91,7 @@ class Java extends base_1.BaseStrategy {
|
|
|
91
91
|
const updates = await this.buildUpdates({
|
|
92
92
|
newVersion,
|
|
93
93
|
versionsMap,
|
|
94
|
+
skipChangelog: this.skipChangelog,
|
|
94
95
|
changelogEntry: notes,
|
|
95
96
|
isSnapshot: true,
|
|
96
97
|
commits: [],
|
|
@@ -155,14 +156,15 @@ class Java extends base_1.BaseStrategy {
|
|
|
155
156
|
}
|
|
156
157
|
});
|
|
157
158
|
// Update changelog
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
159
|
+
!this.skipChangelog &&
|
|
160
|
+
updates.push({
|
|
161
|
+
path: this.addPath(this.changelogPath),
|
|
162
|
+
createIfMissing: true,
|
|
163
|
+
updater: new changelog_1.Changelog({
|
|
164
|
+
version,
|
|
165
|
+
changelogEntry: options.changelogEntry,
|
|
166
|
+
}),
|
|
167
|
+
});
|
|
166
168
|
}
|
|
167
169
|
return updates;
|
|
168
170
|
}
|
|
@@ -26,14 +26,15 @@ class KRMBlueprint extends base_1.BaseStrategy {
|
|
|
26
26
|
async buildUpdates(options) {
|
|
27
27
|
const updates = [];
|
|
28
28
|
const version = options.newVersion;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
!this.skipChangelog &&
|
|
30
|
+
updates.push({
|
|
31
|
+
path: this.addPath(this.changelogPath),
|
|
32
|
+
createIfMissing: true,
|
|
33
|
+
updater: new changelog_1.Changelog({
|
|
34
|
+
version,
|
|
35
|
+
changelogEntry: options.changelogEntry,
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
37
38
|
const versionsMap = new Map();
|
|
38
39
|
if (options.latestVersion) {
|
|
39
40
|
versionsMap.set('previousVersion', options.latestVersion);
|
|
@@ -48,14 +48,15 @@ class Node extends base_1.BaseStrategy {
|
|
|
48
48
|
packageName,
|
|
49
49
|
}),
|
|
50
50
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
!this.skipChangelog &&
|
|
52
|
+
updates.push({
|
|
53
|
+
path: this.addPath(this.changelogPath),
|
|
54
|
+
createIfMissing: true,
|
|
55
|
+
updater: new changelog_1.Changelog({
|
|
56
|
+
version,
|
|
57
|
+
changelogEntry: options.changelogEntry,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
59
60
|
updates.push({
|
|
60
61
|
path: this.addPath('package.json'),
|
|
61
62
|
createIfMissing: false,
|
|
@@ -65,7 +66,7 @@ class Node extends base_1.BaseStrategy {
|
|
|
65
66
|
}),
|
|
66
67
|
});
|
|
67
68
|
// If a machine readable changelog.json exists update it:
|
|
68
|
-
if (options.commits && packageName) {
|
|
69
|
+
if (options.commits && packageName && !this.skipChangelog) {
|
|
69
70
|
const commits = (0, filter_commits_1.filterCommits)(options.commits, this.changelogSections);
|
|
70
71
|
updates.push({
|
|
71
72
|
path: 'changelog.json',
|
|
@@ -26,14 +26,15 @@ class OCaml extends base_1.BaseStrategy {
|
|
|
26
26
|
async buildUpdates(options) {
|
|
27
27
|
const updates = [];
|
|
28
28
|
const version = options.newVersion;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
!this.skipChangelog &&
|
|
30
|
+
updates.push({
|
|
31
|
+
path: this.addPath(this.changelogPath),
|
|
32
|
+
createIfMissing: true,
|
|
33
|
+
updater: new changelog_1.Changelog({
|
|
34
|
+
version,
|
|
35
|
+
changelogEntry: options.changelogEntry,
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
37
38
|
const jsonPaths = await this.github.findFilesByExtension('json', this.path);
|
|
38
39
|
for (const path of jsonPaths) {
|
|
39
40
|
if (notEsyLock(path)) {
|
|
@@ -114,6 +114,7 @@ class PHPYoshi extends base_1.BaseStrategy {
|
|
|
114
114
|
: branch_name_1.BranchName.ofTargetBranch(this.targetBranch);
|
|
115
115
|
const updates = await this.buildUpdates({
|
|
116
116
|
changelogEntry: releaseNotesBody,
|
|
117
|
+
skipChangelog: this.skipChangelog,
|
|
117
118
|
newVersion,
|
|
118
119
|
versionsMap,
|
|
119
120
|
latestVersion: latestRelease === null || latestRelease === void 0 ? void 0 : latestRelease.tag.version,
|
|
@@ -190,14 +191,15 @@ class PHPYoshi extends base_1.BaseStrategy {
|
|
|
190
191
|
const updates = [];
|
|
191
192
|
const version = options.newVersion;
|
|
192
193
|
const versionsMap = options.versionsMap;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
194
|
+
!this.skipChangelog &&
|
|
195
|
+
updates.push({
|
|
196
|
+
path: this.addPath(this.changelogPath),
|
|
197
|
+
createIfMissing: true,
|
|
198
|
+
updater: new changelog_1.Changelog({
|
|
199
|
+
version,
|
|
200
|
+
changelogEntry: options.changelogEntry,
|
|
201
|
+
}),
|
|
202
|
+
});
|
|
201
203
|
// update VERSION file
|
|
202
204
|
updates.push({
|
|
203
205
|
path: this.addPath('VERSION'),
|
|
@@ -43,14 +43,15 @@ class PHP extends base_1.BaseStrategy {
|
|
|
43
43
|
const updates = [];
|
|
44
44
|
const version = options.newVersion;
|
|
45
45
|
const versionsMap = new Map();
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
!this.skipChangelog &&
|
|
47
|
+
updates.push({
|
|
48
|
+
path: this.addPath(this.changelogPath),
|
|
49
|
+
createIfMissing: true,
|
|
50
|
+
updater: new changelog_1.Changelog({
|
|
51
|
+
version,
|
|
52
|
+
changelogEntry: options.changelogEntry,
|
|
53
|
+
}),
|
|
54
|
+
});
|
|
54
55
|
// update composer.json
|
|
55
56
|
updates.push({
|
|
56
57
|
path: this.addPath('composer.json'),
|
|
@@ -48,14 +48,15 @@ class Python extends base_1.BaseStrategy {
|
|
|
48
48
|
var _a;
|
|
49
49
|
const updates = [];
|
|
50
50
|
const version = options.newVersion;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
!this.skipChangelog &&
|
|
52
|
+
updates.push({
|
|
53
|
+
path: this.addPath(this.changelogPath),
|
|
54
|
+
createIfMissing: true,
|
|
55
|
+
updater: new changelog_1.Changelog({
|
|
56
|
+
version,
|
|
57
|
+
changelogEntry: options.changelogEntry,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
59
60
|
updates.push({
|
|
60
61
|
path: this.addPath('setup.cfg'),
|
|
61
62
|
createIfMissing: false,
|
|
@@ -117,7 +118,7 @@ class Python extends base_1.BaseStrategy {
|
|
|
117
118
|
});
|
|
118
119
|
// If a machine readable changelog.json exists update it:
|
|
119
120
|
const artifactName = projectName !== null && projectName !== void 0 ? projectName : (await this.getNameFromSetupPy());
|
|
120
|
-
if (options.commits && artifactName) {
|
|
121
|
+
if (options.commits && artifactName && !this.skipChangelog) {
|
|
121
122
|
const commits = (0, filter_commits_1.filterCommits)(options.commits, this.changelogSections);
|
|
122
123
|
updates.push({
|
|
123
124
|
path: 'changelog.json',
|