release-please 16.18.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.
Files changed (39) hide show
  1. package/README.md +0 -7
  2. package/build/src/factory.js +1 -0
  3. package/build/src/github.d.ts +1 -0
  4. package/build/src/github.js +3 -0
  5. package/build/src/index.d.ts +1 -1
  6. package/build/src/index.js +1 -1
  7. package/build/src/manifest.d.ts +2 -0
  8. package/build/src/manifest.js +23 -21
  9. package/build/src/strategies/base.d.ts +3 -0
  10. package/build/src/strategies/base.js +2 -0
  11. package/build/src/strategies/bazel.js +9 -8
  12. package/build/src/strategies/dart.js +9 -8
  13. package/build/src/strategies/dotnet-yoshi.js +10 -9
  14. package/build/src/strategies/elixir.js +9 -8
  15. package/build/src/strategies/go-yoshi.js +9 -8
  16. package/build/src/strategies/go.d.ts +3 -1
  17. package/build/src/strategies/go.js +25 -8
  18. package/build/src/strategies/helm.js +9 -8
  19. package/build/src/strategies/java-yoshi-mono-repo.js +9 -8
  20. package/build/src/strategies/java-yoshi.js +1 -1
  21. package/build/src/strategies/java.js +10 -8
  22. package/build/src/strategies/krm-blueprint.js +9 -8
  23. package/build/src/strategies/node.js +10 -9
  24. package/build/src/strategies/ocaml.js +9 -8
  25. package/build/src/strategies/php-yoshi.js +10 -8
  26. package/build/src/strategies/php.js +9 -8
  27. package/build/src/strategies/python.js +10 -9
  28. package/build/src/strategies/ruby-yoshi.js +9 -8
  29. package/build/src/strategies/ruby.js +9 -8
  30. package/build/src/strategies/rust.js +9 -8
  31. package/build/src/strategies/sfdx.js +9 -8
  32. package/build/src/strategies/simple.js +9 -8
  33. package/build/src/strategies/terraform-module.js +9 -8
  34. package/build/src/updaters/release-please-config.js +1 -0
  35. package/package.json +9 -8
  36. package/schemas/config.json +7 -7
  37. package/CHANGELOG.md +0 -3034
  38. package/build/src/updaters/changelog.js.map +0 -1
  39. 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
@@ -123,6 +123,7 @@ async function buildStrategy(options) {
123
123
  });
124
124
  const strategyOptions = {
125
125
  skipGitHubRelease: options.skipGithubRelease,
126
+ skipChangelog: options.skipChangelog,
126
127
  ...options,
127
128
  targetBranch,
128
129
  versioningStrategy,
@@ -41,6 +41,7 @@ interface GitHubCreateOptions {
41
41
  token?: string;
42
42
  logger?: Logger;
43
43
  proxy?: ProxyOption;
44
+ fetch?: any;
44
45
  }
45
46
  type CommitFilter = (commit: Commit) => boolean;
46
47
  interface CommitIteratorOptions {
@@ -403,6 +403,7 @@ class GitHub {
403
403
  auth: options.token,
404
404
  request: {
405
405
  agent: this.createDefaultAgent(apiUrl, options.proxy),
406
+ fetch: options.fetch,
406
407
  },
407
408
  }),
408
409
  request: request_1.request.defaults({
@@ -411,11 +412,13 @@ class GitHub {
411
412
  'user-agent': `release-please/${releasePleaseVersion}`,
412
413
  Authorization: `token ${options.token}`,
413
414
  },
415
+ fetch: options.fetch,
414
416
  }),
415
417
  graphql: graphql_1.graphql.defaults({
416
418
  baseUrl: graphqlUrl,
417
419
  request: {
418
420
  agent: this.createDefaultAgent(graphqlUrl, options.proxy),
421
+ fetch: options.fetch,
419
422
  },
420
423
  headers: {
421
424
  'user-agent': `release-please/${releasePleaseVersion}`,
@@ -14,4 +14,4 @@ export { Logger, setLogger } from './util/logger';
14
14
  export { GitHub } from './github';
15
15
  export declare const configSchema: any;
16
16
  export declare const manifestSchema: any;
17
- export declare const VERSION = "16.18.0";
17
+ export declare const VERSION = "17.1.0";
@@ -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 = '16.18.0';
39
+ exports.VERSION = '17.1.0';
40
40
  // x-release-please-end
41
41
  //# sourceMappingURL=index.js.map
@@ -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;
@@ -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
- draft: (_o = pathConfig.draft) !== null && _o !== void 0 ? _o : defaultConfig.draft,
1070
- draftPullRequest: (_p = pathConfig.draftPullRequest) !== null && _p !== void 0 ? _p : defaultConfig.draftPullRequest,
1071
- prerelease: (_q = pathConfig.prerelease) !== null && _q !== void 0 ? _q : defaultConfig.prerelease,
1072
- component: (_r = pathConfig.component) !== null && _r !== void 0 ? _r : defaultConfig.component,
1073
- packageName: (_s = pathConfig.packageName) !== null && _s !== void 0 ? _s : defaultConfig.packageName,
1074
- versionFile: (_t = pathConfig.versionFile) !== null && _t !== void 0 ? _t : defaultConfig.versionFile,
1075
- extraFiles: (_u = pathConfig.extraFiles) !== null && _u !== void 0 ? _u : defaultConfig.extraFiles,
1076
- includeComponentInTag: (_v = pathConfig.includeComponentInTag) !== null && _v !== void 0 ? _v : defaultConfig.includeComponentInTag,
1077
- includeVInTag: (_w = pathConfig.includeVInTag) !== null && _w !== void 0 ? _w : defaultConfig.includeVInTag,
1078
- tagSeparator: (_x = pathConfig.tagSeparator) !== null && _x !== void 0 ? _x : defaultConfig.tagSeparator,
1079
- pullRequestTitlePattern: (_y = pathConfig.pullRequestTitlePattern) !== null && _y !== void 0 ? _y : defaultConfig.pullRequestTitlePattern,
1080
- pullRequestHeader: (_z = pathConfig.pullRequestHeader) !== null && _z !== void 0 ? _z : defaultConfig.pullRequestHeader,
1081
- pullRequestFooter: (_0 = pathConfig.pullRequestFooter) !== null && _0 !== void 0 ? _0 : defaultConfig.pullRequestFooter,
1082
- componentNoSpace: (_1 = pathConfig.componentNoSpace) !== null && _1 !== void 0 ? _1 : defaultConfig.componentNoSpace,
1083
- separatePullRequests: (_2 = pathConfig.separatePullRequests) !== null && _2 !== void 0 ? _2 : defaultConfig.separatePullRequests,
1084
- skipSnapshot: (_3 = pathConfig.skipSnapshot) !== null && _3 !== void 0 ? _3 : defaultConfig.skipSnapshot,
1085
- initialVersion: (_4 = pathConfig.initialVersion) !== null && _4 !== void 0 ? _4 : defaultConfig.initialVersion,
1086
- extraLabels: (_5 = pathConfig.extraLabels) !== null && _5 !== void 0 ? _5 : defaultConfig.extraLabels,
1087
- excludePaths: (_6 = pathConfig.excludePaths) !== null && _6 !== void 0 ? _6 : defaultConfig.excludePaths,
1088
- dateFormat: (_7 = pathConfig.dateFormat) !== null && _7 !== void 0 ? _7 : defaultConfig.dateFormat,
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
- 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
- });
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
- updates.push({
29
- path: this.addPath(this.changelogPath),
30
- createIfMissing: true,
31
- updater: new changelog_1.Changelog({
32
- version,
33
- changelogEntry: options.changelogEntry,
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
- updates.push({
86
- path: this.addPath(this.changelogPath),
87
- createIfMissing: true,
88
- updater: new changelog_1.Changelog({
89
- version,
90
- changelogEntry: options.changelogEntry,
91
- versionHeaderRegex: '\n## Version [0-9[]+',
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
- updates.push({
27
- path: this.addPath(this.changelogPath),
28
- createIfMissing: true,
29
- updater: new changelog_1.Changelog({
30
- version,
31
- changelogEntry: options.changelogEntry,
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
- updates.push({
50
- path: this.addPath(this.changelogPath),
51
- createIfMissing: true,
52
- updater: new changelog_1.Changelog({
53
- version,
54
- changelogEntry: options.changelogEntry,
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
- updates.push({
25
- path: this.addPath(this.changelogPath),
26
- createIfMissing: true,
27
- updater: new changelog_1.Changelog({
28
- version,
29
- changelogEntry: options.changelogEntry,
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
- updates.push({
29
- path: this.addPath(this.changelogPath),
30
- createIfMissing: true,
31
- updater: new changelog_1.Changelog({
32
- version,
33
- changelogEntry: options.changelogEntry,
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
- updates.push({
153
- path: this.addPath(this.changelogPath),
154
- createIfMissing: true,
155
- updater: new changelog_1.Changelog({
156
- version,
157
- changelogEntry: options.changelogEntry,
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();
@@ -131,7 +131,7 @@ class JavaYoshi extends java_1.Java {
131
131
  }),
132
132
  });
133
133
  });
134
- if (!options.isSnapshot) {
134
+ if (!options.isSnapshot && !this.skipChangelog) {
135
135
  updates.push({
136
136
  path: this.addPath(this.changelogPath),
137
137
  createIfMissing: true,
@@ -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
- updates.push({
159
- path: this.addPath(this.changelogPath),
160
- createIfMissing: true,
161
- updater: new changelog_1.Changelog({
162
- version,
163
- changelogEntry: options.changelogEntry,
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
- 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
- });
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
- updates.push({
52
- path: this.addPath(this.changelogPath),
53
- createIfMissing: true,
54
- updater: new changelog_1.Changelog({
55
- version,
56
- changelogEntry: options.changelogEntry,
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
- 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
- });
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
- updates.push({
194
- path: this.addPath(this.changelogPath),
195
- createIfMissing: true,
196
- updater: new changelog_1.Changelog({
197
- version,
198
- changelogEntry: options.changelogEntry,
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
- updates.push({
47
- path: this.addPath(this.changelogPath),
48
- createIfMissing: true,
49
- updater: new changelog_1.Changelog({
50
- version,
51
- changelogEntry: options.changelogEntry,
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'),