release-please 13.14.0 → 13.15.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/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [13.15.0](https://github.com/googleapis/release-please/compare/v13.14.0...v13.15.0) (2022-04-27)
8
+
9
+
10
+ ### Features
11
+
12
+ * allow configuring changelog-host ([#1408](https://github.com/googleapis/release-please/issues/1408)) ([d7d525f](https://github.com/googleapis/release-please/commit/d7d525f283f931dd999ca69228e71dd6adf9e0c3))
13
+
7
14
  ## [13.14.0](https://github.com/googleapis/release-please/compare/v13.13.0...v13.14.0) (2022-04-20)
8
15
 
9
16
 
@@ -55,6 +55,7 @@ interface PullRequestStrategyArgs {
55
55
  snapshot?: boolean;
56
56
  changelogSections?: ChangelogSection[];
57
57
  changelogPath?: string;
58
+ changelogHost?: string;
58
59
  versioningStrategy?: VersioningStrategyType;
59
60
  versionFile?: string;
60
61
  extraFiles?: string[];
@@ -185,6 +185,10 @@ function pullRequestStrategyOptions(yargs) {
185
185
  }
186
186
  return arg;
187
187
  },
188
+ })
189
+ .option('changelog-host', {
190
+ describe: 'host for hyperlinks in the changelog',
191
+ type: 'string',
188
192
  })
189
193
  .option('last-package-version', {
190
194
  describe: 'last version # that package was released as',
@@ -284,6 +288,7 @@ const createReleasePullRequestCommand = {
284
288
  bumpPatchForMinorPreMajor: argv.bumpPatchForMinorPreMajor,
285
289
  changelogPath: argv.changelogPath,
286
290
  changelogType: argv.changelogType,
291
+ changelogHost: argv.changelogHost,
287
292
  pullRequestTitlePattern: argv.pullRequestTitlePattern,
288
293
  changelogSections: argv.changelogSections,
289
294
  releaseAs: argv.releaseAs,
@@ -471,6 +476,7 @@ const bootstrapCommand = {
471
476
  bumpMinorPreMajor: argv.bumpMinorPreMajor,
472
477
  bumpPatchForMinorPreMajor: argv.bumpPatchForMinorPreMajor,
473
478
  changelogPath: argv.changelogPath,
479
+ changelogHost: argv.changelogHost,
474
480
  changelogSections: argv.changelogSections,
475
481
  releaseAs: argv.releaseAs,
476
482
  versioning: argv.versioningStrategy,
@@ -42,6 +42,7 @@ export interface ReleaserConfig {
42
42
  changelogSections?: ChangelogSection[];
43
43
  changelogPath?: string;
44
44
  changelogType?: ChangelogNotesType;
45
+ changelogHost?: string;
45
46
  versionFile?: string;
46
47
  extraFiles?: ExtraFile[];
47
48
  snapshotLabels?: string[];
@@ -72,6 +73,7 @@ interface ReleaserConfigJson {
72
73
  'include-component-in-tag'?: boolean;
73
74
  'include-v-in-tag'?: boolean;
74
75
  'changelog-type'?: ChangelogNotesType;
76
+ 'changelog-host'?: string;
75
77
  'pull-request-title-pattern'?: string;
76
78
  'tag-separator'?: string;
77
79
  'extra-files'?: string[];
@@ -700,6 +700,7 @@ function extractReleaserConfig(config) {
700
700
  bumpPatchForMinorPreMajor: config['bump-patch-for-minor-pre-major'],
701
701
  changelogSections: config['changelog-sections'],
702
702
  changelogPath: config['changelog-path'],
703
+ changelogHost: config['changelog-host'],
703
704
  releaseAs: config['release-as'],
704
705
  skipGithubRelease: config['skip-github-release'],
705
706
  draft: config.draft,
@@ -872,25 +873,26 @@ async function latestReleaseVersion(github, targetBranch, releaseFilter, prefix,
872
873
  return candidateTagVersion.sort((a, b) => b.compare(a))[0];
873
874
  }
874
875
  function mergeReleaserConfig(defaultConfig, pathConfig) {
875
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
876
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
876
877
  return {
877
878
  releaseType: (_b = (_a = pathConfig.releaseType) !== null && _a !== void 0 ? _a : defaultConfig.releaseType) !== null && _b !== void 0 ? _b : 'node',
878
879
  bumpMinorPreMajor: (_c = pathConfig.bumpMinorPreMajor) !== null && _c !== void 0 ? _c : defaultConfig.bumpMinorPreMajor,
879
880
  bumpPatchForMinorPreMajor: (_d = pathConfig.bumpPatchForMinorPreMajor) !== null && _d !== void 0 ? _d : defaultConfig.bumpPatchForMinorPreMajor,
880
881
  changelogSections: (_e = pathConfig.changelogSections) !== null && _e !== void 0 ? _e : defaultConfig.changelogSections,
881
882
  changelogPath: (_f = pathConfig.changelogPath) !== null && _f !== void 0 ? _f : defaultConfig.changelogPath,
882
- releaseAs: (_g = pathConfig.releaseAs) !== null && _g !== void 0 ? _g : defaultConfig.releaseAs,
883
- skipGithubRelease: (_h = pathConfig.skipGithubRelease) !== null && _h !== void 0 ? _h : defaultConfig.skipGithubRelease,
884
- draft: (_j = pathConfig.draft) !== null && _j !== void 0 ? _j : defaultConfig.draft,
885
- prerelease: (_k = pathConfig.prerelease) !== null && _k !== void 0 ? _k : defaultConfig.prerelease,
886
- component: (_l = pathConfig.component) !== null && _l !== void 0 ? _l : defaultConfig.component,
887
- packageName: (_m = pathConfig.packageName) !== null && _m !== void 0 ? _m : defaultConfig.packageName,
888
- versionFile: (_o = pathConfig.versionFile) !== null && _o !== void 0 ? _o : defaultConfig.versionFile,
889
- extraFiles: (_p = pathConfig.extraFiles) !== null && _p !== void 0 ? _p : defaultConfig.extraFiles,
890
- includeComponentInTag: (_q = pathConfig.includeComponentInTag) !== null && _q !== void 0 ? _q : defaultConfig.includeComponentInTag,
891
- includeVInTag: (_r = pathConfig.includeVInTag) !== null && _r !== void 0 ? _r : defaultConfig.includeVInTag,
892
- tagSeparator: (_s = pathConfig.tagSeparator) !== null && _s !== void 0 ? _s : defaultConfig.tagSeparator,
893
- pullRequestTitlePattern: (_t = pathConfig.pullRequestTitlePattern) !== null && _t !== void 0 ? _t : defaultConfig.pullRequestTitlePattern,
883
+ changelogHost: (_g = pathConfig.changelogHost) !== null && _g !== void 0 ? _g : defaultConfig.changelogHost,
884
+ releaseAs: (_h = pathConfig.releaseAs) !== null && _h !== void 0 ? _h : defaultConfig.releaseAs,
885
+ skipGithubRelease: (_j = pathConfig.skipGithubRelease) !== null && _j !== void 0 ? _j : defaultConfig.skipGithubRelease,
886
+ draft: (_k = pathConfig.draft) !== null && _k !== void 0 ? _k : defaultConfig.draft,
887
+ prerelease: (_l = pathConfig.prerelease) !== null && _l !== void 0 ? _l : defaultConfig.prerelease,
888
+ component: (_m = pathConfig.component) !== null && _m !== void 0 ? _m : defaultConfig.component,
889
+ packageName: (_o = pathConfig.packageName) !== null && _o !== void 0 ? _o : defaultConfig.packageName,
890
+ versionFile: (_p = pathConfig.versionFile) !== null && _p !== void 0 ? _p : defaultConfig.versionFile,
891
+ extraFiles: (_q = pathConfig.extraFiles) !== null && _q !== void 0 ? _q : defaultConfig.extraFiles,
892
+ includeComponentInTag: (_r = pathConfig.includeComponentInTag) !== null && _r !== void 0 ? _r : defaultConfig.includeComponentInTag,
893
+ includeVInTag: (_s = pathConfig.includeVInTag) !== null && _s !== void 0 ? _s : defaultConfig.includeVInTag,
894
+ tagSeparator: (_t = pathConfig.tagSeparator) !== null && _t !== void 0 ? _t : defaultConfig.tagSeparator,
895
+ pullRequestTitlePattern: (_u = pathConfig.pullRequestTitlePattern) !== null && _u !== void 0 ? _u : defaultConfig.pullRequestTitlePattern,
894
896
  };
895
897
  }
896
898
  /**
@@ -28,6 +28,7 @@ export interface BaseStrategyOptions {
28
28
  versioningStrategy?: VersioningStrategy;
29
29
  targetBranch: string;
30
30
  changelogPath?: string;
31
+ changelogHost?: string;
31
32
  changelogSections?: ChangelogSection[];
32
33
  commitPartial?: string;
33
34
  headerPartial?: string;
@@ -56,6 +57,7 @@ export declare abstract class BaseStrategy implements Strategy {
56
57
  protected targetBranch: string;
57
58
  protected repository: Repository;
58
59
  protected changelogPath: string;
60
+ protected changelogHost?: string;
59
61
  protected tagSeparator?: string;
60
62
  private skipGitHubRelease;
61
63
  private releaseAs?;
@@ -47,6 +47,7 @@ class BaseStrategy {
47
47
  this.targetBranch = options.targetBranch;
48
48
  this.repository = options.github.repository;
49
49
  this.changelogPath = options.changelogPath || DEFAULT_CHANGELOG_PATH;
50
+ this.changelogHost = options.changelogHost;
50
51
  this.changelogSections = options.changelogSections;
51
52
  this.tagSeparator = options.tagSeparator;
52
53
  this.skipGitHubRelease = options.skipGitHubRelease || false;
@@ -97,6 +98,7 @@ class BaseStrategy {
97
98
  async buildReleaseNotes(conventionalCommits, newVersion, newVersionTag, latestRelease, commits) {
98
99
  var _a;
99
100
  return await this.changelogNotes.buildNotes(conventionalCommits, {
101
+ host: this.changelogHost,
100
102
  owner: this.repository.owner,
101
103
  repository: this.repository.repo,
102
104
  version: newVersion.toString(),
@@ -79,6 +79,7 @@ class PHPYoshi extends base_1.BaseStrategy {
79
79
  const newVersion = await this.versioningStrategy.bump(version, splitCommits[directory]);
80
80
  versionsMap.set(composer.name, newVersion);
81
81
  const partialReleaseNotes = await this.changelogNotes.buildNotes(splitCommits[directory], {
82
+ host: this.changelogHost,
82
83
  owner: this.repository.owner,
83
84
  repository: this.repository.repo,
84
85
  version: newVersion.toString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "13.14.0",
3
+ "version": "13.15.0",
4
4
  "description": "generate release PRs based on the conventionalcommits.org spec",
5
5
  "main": "./build/src/index.js",
6
6
  "bin": "./build/src/bin/release-please.js",