release-please 13.19.6 → 13.19.9
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 +21 -0
- package/README.md +2 -0
- package/build/src/github.js +3 -3
- package/build/src/manifest.d.ts +4 -2
- package/build/src/manifest.js +6 -3
- package/build/src/updaters/php/root-composer-update-packages.js +12 -5
- package/build/src/updaters/release-please-config.js +31 -1
- package/package.json +1 -1
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.9](https://github.com/googleapis/release-please/compare/v13.19.8...v13.19.9) (2022-08-08)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* php root-composer-update-packages version replace ([#1553](https://github.com/googleapis/release-please/issues/1553)) ([41127e6](https://github.com/googleapis/release-please/commit/41127e688597a0af6502957d85ba8cd6214e9008))
|
|
13
|
+
|
|
14
|
+
## [13.19.8](https://github.com/googleapis/release-please/compare/v13.19.7...v13.19.8) (2022-08-03)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* 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)
|
|
20
|
+
|
|
21
|
+
## [13.19.7](https://github.com/googleapis/release-please/compare/v13.19.6...v13.19.7) (2022-08-03)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* 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))
|
|
27
|
+
|
|
7
28
|
## [13.19.6](https://github.com/googleapis/release-please/compare/v13.19.5...v13.19.6) (2022-07-27)
|
|
8
29
|
|
|
9
30
|
|
package/README.md
CHANGED
|
@@ -206,6 +206,8 @@ This library follows [Semantic Versioning](http://semver.org/).
|
|
|
206
206
|
|
|
207
207
|
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/release-please/blob/main/CONTRIBUTING.md).
|
|
208
208
|
|
|
209
|
+
For more information on the design of the library, see [design](https://github.com/googleapis/release-please/blob/main/docs/design.md).
|
|
210
|
+
|
|
209
211
|
## License
|
|
210
212
|
|
|
211
213
|
Apache Version 2.0
|
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'],
|
|
@@ -33,11 +33,18 @@ class RootComposerUpdatePackages extends default_1.DefaultUpdater {
|
|
|
33
33
|
}
|
|
34
34
|
const parsed = JSON.parse(content);
|
|
35
35
|
if (this.versionsMap) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
for (const [key, version] of this.versionsMap.entries()) {
|
|
37
|
+
const toVersion = version.toString() || '1.0.0';
|
|
38
|
+
let fromVersion;
|
|
39
|
+
if (parsed.replace) {
|
|
40
|
+
fromVersion = parsed.replace[key];
|
|
41
|
+
parsed.replace[key] = toVersion;
|
|
42
|
+
}
|
|
43
|
+
if (parsed[key]) {
|
|
44
|
+
fromVersion !== null && fromVersion !== void 0 ? fromVersion : (fromVersion = parsed[key]);
|
|
45
|
+
parsed[key] = toVersion;
|
|
46
|
+
}
|
|
47
|
+
logger_1.logger.info(`updating ${key} from ${fromVersion} to ${toVersion}`);
|
|
41
48
|
}
|
|
42
49
|
}
|
|
43
50
|
return (0, json_stringify_1.jsonStringify)(parsed, content);
|
|
@@ -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