release-please 13.19.5 → 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,27 @@
|
|
|
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
|
+
|
|
14
|
+
## [13.19.7](https://github.com/googleapis/release-please/compare/v13.19.6...v13.19.7) (2022-08-03)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* handles pull request iterator when graphQL returns no files ([#1544](https://github.com/googleapis/release-please/issues/1544)) ([7d0f873](https://github.com/googleapis/release-please/commit/7d0f87361f9ddd3f55eb2f40ef7150c9b7f39f34))
|
|
20
|
+
|
|
21
|
+
## [13.19.6](https://github.com/googleapis/release-please/compare/v13.19.5...v13.19.6) (2022-07-27)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* skip component when manifest release does not include component ([#1537](https://github.com/googleapis/release-please/issues/1537)) ([8f1a3a8](https://github.com/googleapis/release-please/commit/8f1a3a84a7abc81c47d8cac9295e58bc37cc92c5)), closes [#1536](https://github.com/googleapis/release-please/issues/1536)
|
|
27
|
+
|
|
7
28
|
## [13.19.5](https://github.com/googleapis/release-please/compare/v13.19.4...v13.19.5) (2022-07-26)
|
|
8
29
|
|
|
9
30
|
|
package/build/src/github.js
CHANGED
|
@@ -697,16 +697,16 @@ class GitHub {
|
|
|
697
697
|
return {
|
|
698
698
|
pageInfo: response.repository.pullRequests.pageInfo,
|
|
699
699
|
data: pullRequests.map(pullRequest => {
|
|
700
|
-
var _a;
|
|
700
|
+
var _a, _b, _c;
|
|
701
701
|
return {
|
|
702
702
|
sha: (_a = pullRequest.mergeCommit) === null || _a === void 0 ? void 0 : _a.oid,
|
|
703
703
|
number: pullRequest.number,
|
|
704
704
|
baseBranchName: pullRequest.baseRefName,
|
|
705
705
|
headBranchName: pullRequest.headRefName,
|
|
706
|
-
labels: (pullRequest.labels.nodes || []).map(l => l.name),
|
|
706
|
+
labels: (((_b = pullRequest.labels) === null || _b === void 0 ? void 0 : _b.nodes) || []).map(l => l.name),
|
|
707
707
|
title: pullRequest.title,
|
|
708
708
|
body: pullRequest.body + '',
|
|
709
|
-
files: pullRequest.files.nodes.map(node => node.path),
|
|
709
|
+
files: (((_c = pullRequest.files) === null || _c === void 0 ? void 0 : _c.nodes) || []).map(node => node.path),
|
|
710
710
|
};
|
|
711
711
|
}),
|
|
712
712
|
};
|
package/build/src/manifest.d.ts
CHANGED
|
@@ -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'?:
|
|
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;
|
package/build/src/manifest.js
CHANGED
|
@@ -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 ===
|
|
767
|
-
releaseLabels: configReleaseLabel ===
|
|
768
|
-
snapshotLabels: 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'],
|
|
@@ -289,11 +289,17 @@ class BaseStrategy {
|
|
|
289
289
|
releaseData = pullRequestBody.releaseData[0];
|
|
290
290
|
}
|
|
291
291
|
else {
|
|
292
|
-
// manifest release with multiple components
|
|
293
|
-
|
|
294
|
-
|
|
292
|
+
// manifest release with multiple components - find the release notes
|
|
293
|
+
// for the component to see if it was included in this release (parsed
|
|
294
|
+
// from the release pull request body)
|
|
295
|
+
releaseData = pullRequestBody.releaseData.find(datum => {
|
|
296
|
+
return (this.normalizeComponent(datum.component) ===
|
|
295
297
|
this.normalizeComponent(component));
|
|
296
298
|
});
|
|
299
|
+
if (!releaseData && pullRequestBody.releaseData.length > 0) {
|
|
300
|
+
logger_1.logger.info(`Pull request contains releases, but not for component: ${component}`);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
297
303
|
}
|
|
298
304
|
const notes = releaseData === null || releaseData === void 0 ? void 0 : releaseData.notes;
|
|
299
305
|
if (notes === undefined) {
|
|
@@ -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