release-please 13.19.7 → 13.19.8

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.19.8](https://github.com/googleapis/release-please/compare/v13.19.7...v13.19.8) (2022-08-03)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * convert ReleaserConfig JSON keys when bootstrapping ([#1535](https://github.com/googleapis/release-please/issues/1535)) ([64c267e](https://github.com/googleapis/release-please/commit/64c267e1c986029b6c483b924950135c138c510f)), closes [#1522](https://github.com/googleapis/release-please/issues/1522)
13
+
7
14
  ## [13.19.7](https://github.com/googleapis/release-please/compare/v13.19.6...v13.19.7) (2022-08-03)
8
15
 
9
16
 
@@ -45,6 +45,8 @@ export interface ReleaserConfig {
45
45
  pullRequestTitlePattern?: string;
46
46
  tagSeparator?: string;
47
47
  separatePullRequests?: boolean;
48
+ labels?: string[];
49
+ releaseLabels?: string[];
48
50
  changelogSections?: ChangelogSection[];
49
51
  changelogPath?: string;
50
52
  changelogType?: ChangelogNotesType;
@@ -83,7 +85,7 @@ interface ReleaserConfigJson {
83
85
  'pull-request-title-pattern'?: string;
84
86
  'separate-pull-requests'?: boolean;
85
87
  'tag-separator'?: string;
86
- 'extra-files'?: string[];
88
+ 'extra-files'?: ExtraFile[];
87
89
  'version-file'?: string;
88
90
  'snapshot-label'?: string;
89
91
  }
@@ -108,7 +110,7 @@ export interface ManifestOptions {
108
110
  releaseSearchDepth?: number;
109
111
  commitSearchDepth?: number;
110
112
  }
111
- interface ReleaserPackageConfig extends ReleaserConfigJson {
113
+ export interface ReleaserPackageConfig extends ReleaserConfigJson {
112
114
  'package-name'?: string;
113
115
  component?: string;
114
116
  'changelog-path'?: string;
@@ -707,6 +707,7 @@ exports.Manifest = Manifest;
707
707
  * @returns {ReleaserConfig}
708
708
  */
709
709
  function extractReleaserConfig(config) {
710
+ var _a, _b;
710
711
  return {
711
712
  releaseType: config['release-type'],
712
713
  bumpMinorPreMajor: config['bump-minor-pre-major'],
@@ -729,6 +730,8 @@ function extractReleaserConfig(config) {
729
730
  pullRequestTitlePattern: config['pull-request-title-pattern'],
730
731
  tagSeparator: config['tag-separator'],
731
732
  separatePullRequests: config['separate-pull-requests'],
733
+ labels: (_a = config['label']) === null || _a === void 0 ? void 0 : _a.split(','),
734
+ releaseLabels: (_b = config['release-label']) === null || _b === void 0 ? void 0 : _b.split(','),
732
735
  };
733
736
  }
734
737
  /**
@@ -763,9 +766,9 @@ async function parseConfig(github, configFile, branch, onlyPath, releaseAs) {
763
766
  separatePullRequests: config['separate-pull-requests'],
764
767
  groupPullRequestTitlePattern: config['group-pull-request-title-pattern'],
765
768
  plugins: config['plugins'],
766
- labels: configLabel === undefined ? undefined : [configLabel],
767
- releaseLabels: configReleaseLabel === undefined ? undefined : [configReleaseLabel],
768
- snapshotLabels: configSnapshotLabel === undefined ? undefined : [configSnapshotLabel],
769
+ labels: configLabel === null || configLabel === void 0 ? void 0 : configLabel.split(','),
770
+ releaseLabels: configReleaseLabel === null || configReleaseLabel === void 0 ? void 0 : configReleaseLabel.split(','),
771
+ snapshotLabels: configSnapshotLabel === null || configSnapshotLabel === void 0 ? void 0 : configSnapshotLabel.split(','),
769
772
  releaseSearchDepth: config['release-search-depth'],
770
773
  commitSearchDepth: config['commit-search-depth'],
771
774
  sequentialCalls: config['sequential-calls'],
@@ -28,7 +28,7 @@ class ReleasePleaseConfig {
28
28
  else {
29
29
  parsed = { packages: {} };
30
30
  }
31
- parsed.packages[this.path] = this.config;
31
+ parsed.packages[this.path] = releaserConfigToJsonConfig(this.config);
32
32
  if (content) {
33
33
  return (0, json_stringify_1.jsonStringify)(parsed, content);
34
34
  }
@@ -38,4 +38,34 @@ class ReleasePleaseConfig {
38
38
  }
39
39
  }
40
40
  exports.ReleasePleaseConfig = ReleasePleaseConfig;
41
+ function releaserConfigToJsonConfig(config) {
42
+ var _a, _b, _c;
43
+ const jsonConfig = {
44
+ 'package-name': config.packageName,
45
+ component: config.component,
46
+ 'changelog-path': config.changelogPath,
47
+ 'release-type': config.releaseType,
48
+ 'bump-minor-pre-major': config.bumpMinorPreMajor,
49
+ 'bump-patch-for-minor-pre-major': config.bumpPatchForMinorPreMajor,
50
+ 'changelog-sections': config.changelogSections,
51
+ 'release-as': config.releaseAs,
52
+ 'skip-github-release': config.skipGithubRelease,
53
+ draft: config.draft,
54
+ prerelease: config.prerelease,
55
+ 'draft-pull-request': config.draftPullRequest,
56
+ label: (_a = config.labels) === null || _a === void 0 ? void 0 : _a.join(','),
57
+ 'release-label': (_b = config.releaseLabels) === null || _b === void 0 ? void 0 : _b.join(','),
58
+ 'include-component-in-tag': config.includeComponentInTag,
59
+ 'include-v-in-tag': config.includeVInTag,
60
+ 'changelog-type': config.changelogType,
61
+ 'changelog-host': config.changelogHost,
62
+ 'pull-request-title-pattern': config.pullRequestTitlePattern,
63
+ 'separate-pull-requests': config.separatePullRequests,
64
+ 'tag-separator': config.tagSeparator,
65
+ 'extra-files': config.extraFiles,
66
+ 'version-file': config.versionFile,
67
+ 'snapshot-label': (_c = config.snapshotLabels) === null || _c === void 0 ? void 0 : _c.join(','), // Java-only
68
+ };
69
+ return jsonConfig;
70
+ }
41
71
  //# sourceMappingURL=release-please-config.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "13.19.7",
3
+ "version": "13.19.8",
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",