release-please 13.18.6 → 13.19.1
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 +22 -0
- package/README.md +7 -13
- package/build/src/index.d.ts +2 -0
- package/build/src/index.js +4 -1
- package/build/src/manifest.js +15 -14
- package/build/src/util/file-cache.js +4 -2
- package/build/src/util/pull-request-title.js +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,28 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [13.19.1](https://github.com/googleapis/release-please/compare/v13.19.0...v13.19.1) (2022-07-06)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* fix file tree listing for extremely large repositories ([#1505](https://github.com/googleapis/release-please/issues/1505)) ([b6ea25e](https://github.com/googleapis/release-please/commit/b6ea25ef34720b16697f598d957604530908e195))
|
|
13
|
+
|
|
14
|
+
## [13.19.0](https://github.com/googleapis/release-please/compare/v13.18.7...v13.19.0) (2022-06-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add manifest schemas ([#1496](https://github.com/googleapis/release-please/issues/1496)) ([adf84ad](https://github.com/googleapis/release-please/commit/adf84ad3ebb8723ebc0e1232cd899c323c36cbfc))
|
|
20
|
+
|
|
21
|
+
## [13.18.7](https://github.com/googleapis/release-please/compare/v13.18.6...v13.18.7) (2022-06-30)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* correctly parse the changelog-type from the manifest config ([#1498](https://github.com/googleapis/release-please/issues/1498)) ([452f084](https://github.com/googleapis/release-please/commit/452f084ef8f664830c560472802e5942804df02d))
|
|
27
|
+
* pull request title component can include '/' ([#1499](https://github.com/googleapis/release-please/issues/1499)) ([19a8e82](https://github.com/googleapis/release-please/commit/19a8e8263500dedd32f3b555a9f00f8627f27a6d))
|
|
28
|
+
|
|
7
29
|
## [13.18.6](https://github.com/googleapis/release-please/compare/v13.18.5...v13.18.6) (2022-06-27)
|
|
8
30
|
|
|
9
31
|
|
package/README.md
CHANGED
|
@@ -29,12 +29,12 @@ When the Release PR is merged, release-please takes the following steps:
|
|
|
29
29
|
2. Tags the commit with the version number
|
|
30
30
|
3. Creates a GitHub Release based on the tag
|
|
31
31
|
|
|
32
|
-
You can tell where the Release PR is its lifecycle by the status label on the
|
|
32
|
+
You can tell where the Release PR is in its lifecycle by the status label on the
|
|
33
33
|
PR itself:
|
|
34
34
|
|
|
35
35
|
- `autorelease: pending` is the initial state of the Release PR before it is merged
|
|
36
36
|
- `autorelease: tagged` means that the Release PR has been merged and the release has been tagged in GitHub
|
|
37
|
-
- `autorelease: snapshot` is special state for snapshot version bumps
|
|
37
|
+
- `autorelease: snapshot` is a special state for snapshot version bumps
|
|
38
38
|
- `autorelease: published` means that a GitHub release has been published based on the Release PR (_release-please does not automatically add this tag, but we recommend it as a convention for publication tooling_).
|
|
39
39
|
|
|
40
40
|
## How should I write my commits?
|
|
@@ -80,7 +80,7 @@ The above commit message will contain:
|
|
|
80
80
|
|
|
81
81
|
## How do I change the version number?
|
|
82
82
|
|
|
83
|
-
When a commit to the main branch has `Release-As: x.x.x`(case insensitive) in the **commit body**, Release Please will open a new pull request for the specified version.
|
|
83
|
+
When a commit to the main branch has `Release-As: x.x.x` (case insensitive) in the **commit body**, Release Please will open a new pull request for the specified version.
|
|
84
84
|
|
|
85
85
|
**Empty commit example:**
|
|
86
86
|
|
|
@@ -94,7 +94,7 @@ Release-As: 2.0.0
|
|
|
94
94
|
|
|
95
95
|
## How can I fix release notes?
|
|
96
96
|
|
|
97
|
-
If you have merged a pull request and
|
|
97
|
+
If you have merged a pull request and would like to amend the commit message
|
|
98
98
|
used to generate the release notes for that commit, you can edit the body of
|
|
99
99
|
the merged pull requests and add a section like:
|
|
100
100
|
|
|
@@ -107,12 +107,12 @@ chore: a third message
|
|
|
107
107
|
END_COMMIT_OVERRIDE
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
The next time
|
|
110
|
+
The next time Release Please runs, it will use that override section as the
|
|
111
111
|
commit message instead of the merged commit message.
|
|
112
112
|
|
|
113
113
|
## Release Please bot does not create a release PR. Why?
|
|
114
114
|
|
|
115
|
-
Release Please creates a release pull request after it
|
|
115
|
+
Release Please creates a release pull request after it notices the default branch
|
|
116
116
|
contains "releasable units" since the last release.
|
|
117
117
|
A releasable unit is a commit to the branch with one of the following
|
|
118
118
|
prefixes: "feat" and "fix". (A "chore" commit is not a releasable unit.)
|
|
@@ -148,7 +148,7 @@ There are a variety of ways you can deploy release-please:
|
|
|
148
148
|
|
|
149
149
|
### GitHub Action (recommended)
|
|
150
150
|
|
|
151
|
-
The easiest way to run
|
|
151
|
+
The easiest way to run Release Please is as a GitHub action. Please see [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) for installation and configuration instructions.
|
|
152
152
|
|
|
153
153
|
### Running as CLI
|
|
154
154
|
|
|
@@ -206,12 +206,6 @@ 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
|
-
Please note that this `README.md`, the `samples/README.md`,
|
|
210
|
-
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
|
|
211
|
-
are generated from a central template. To edit one of these files, make an edit
|
|
212
|
-
to its template in this
|
|
213
|
-
[directory](https://github.com/googleapis/synthtool/tree/main/synthtool/gcp/templates/node_library).
|
|
214
|
-
|
|
215
209
|
## License
|
|
216
210
|
|
|
217
211
|
Apache Version 2.0
|
package/build/src/index.d.ts
CHANGED
|
@@ -9,3 +9,5 @@ export { VersioningStrategyBuilder, VersioningStrategyFactoryOptions, Versioning
|
|
|
9
9
|
export { BuildNotesOptions, ChangelogNotes, ChangelogSection, } from './changelog-notes';
|
|
10
10
|
export { Logger, setLogger } from './util/logger';
|
|
11
11
|
export { GitHub } from './github';
|
|
12
|
+
export declare const configSchema: any;
|
|
13
|
+
export declare const manifestSchema: any;
|
package/build/src/index.js
CHANGED
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
// See the License for the specific language governing permissions and
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.GitHub = exports.setLogger = exports.registerVersioningStrategy = exports.getVersioningStrategyTypes = exports.registerPlugin = exports.getPluginTypes = exports.registerChangelogNotes = exports.getChangelogTypes = exports.registerReleaseType = exports.getReleaserTypes = exports.Manifest = exports.Errors = void 0;
|
|
16
|
+
exports.manifestSchema = exports.configSchema = exports.GitHub = exports.setLogger = exports.registerVersioningStrategy = exports.getVersioningStrategyTypes = exports.registerPlugin = exports.getPluginTypes = exports.registerChangelogNotes = exports.getChangelogTypes = exports.registerReleaseType = exports.getReleaserTypes = exports.Manifest = exports.Errors = void 0;
|
|
17
|
+
const path_1 = require("path");
|
|
17
18
|
exports.Errors = require("./errors");
|
|
18
19
|
var manifest_1 = require("./manifest");
|
|
19
20
|
Object.defineProperty(exports, "Manifest", { enumerable: true, get: function () { return manifest_1.Manifest; } });
|
|
@@ -33,4 +34,6 @@ var logger_1 = require("./util/logger");
|
|
|
33
34
|
Object.defineProperty(exports, "setLogger", { enumerable: true, get: function () { return logger_1.setLogger; } });
|
|
34
35
|
var github_1 = require("./github");
|
|
35
36
|
Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () { return github_1.GitHub; } });
|
|
37
|
+
exports.configSchema = require((0, path_1.resolve)('./src/schemas/config'));
|
|
38
|
+
exports.manifestSchema = require((0, path_1.resolve)('./src/schemas/manifest'));
|
|
36
39
|
//# sourceMappingURL=index.js.map
|
package/build/src/manifest.js
CHANGED
|
@@ -933,7 +933,7 @@ async function latestReleaseVersion(github, targetBranch, releaseFilter, config,
|
|
|
933
933
|
return candidateTagVersion.sort((a, b) => b.compare(a))[0];
|
|
934
934
|
}
|
|
935
935
|
function mergeReleaserConfig(defaultConfig, pathConfig) {
|
|
936
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
936
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
937
937
|
return {
|
|
938
938
|
releaseType: (_b = (_a = pathConfig.releaseType) !== null && _a !== void 0 ? _a : defaultConfig.releaseType) !== null && _b !== void 0 ? _b : 'node',
|
|
939
939
|
bumpMinorPreMajor: (_c = pathConfig.bumpMinorPreMajor) !== null && _c !== void 0 ? _c : defaultConfig.bumpMinorPreMajor,
|
|
@@ -941,19 +941,20 @@ function mergeReleaserConfig(defaultConfig, pathConfig) {
|
|
|
941
941
|
changelogSections: (_e = pathConfig.changelogSections) !== null && _e !== void 0 ? _e : defaultConfig.changelogSections,
|
|
942
942
|
changelogPath: (_f = pathConfig.changelogPath) !== null && _f !== void 0 ? _f : defaultConfig.changelogPath,
|
|
943
943
|
changelogHost: (_g = pathConfig.changelogHost) !== null && _g !== void 0 ? _g : defaultConfig.changelogHost,
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
944
|
+
changelogType: (_h = pathConfig.changelogType) !== null && _h !== void 0 ? _h : defaultConfig.changelogType,
|
|
945
|
+
releaseAs: (_j = pathConfig.releaseAs) !== null && _j !== void 0 ? _j : defaultConfig.releaseAs,
|
|
946
|
+
skipGithubRelease: (_k = pathConfig.skipGithubRelease) !== null && _k !== void 0 ? _k : defaultConfig.skipGithubRelease,
|
|
947
|
+
draft: (_l = pathConfig.draft) !== null && _l !== void 0 ? _l : defaultConfig.draft,
|
|
948
|
+
prerelease: (_m = pathConfig.prerelease) !== null && _m !== void 0 ? _m : defaultConfig.prerelease,
|
|
949
|
+
component: (_o = pathConfig.component) !== null && _o !== void 0 ? _o : defaultConfig.component,
|
|
950
|
+
packageName: (_p = pathConfig.packageName) !== null && _p !== void 0 ? _p : defaultConfig.packageName,
|
|
951
|
+
versionFile: (_q = pathConfig.versionFile) !== null && _q !== void 0 ? _q : defaultConfig.versionFile,
|
|
952
|
+
extraFiles: (_r = pathConfig.extraFiles) !== null && _r !== void 0 ? _r : defaultConfig.extraFiles,
|
|
953
|
+
includeComponentInTag: (_s = pathConfig.includeComponentInTag) !== null && _s !== void 0 ? _s : defaultConfig.includeComponentInTag,
|
|
954
|
+
includeVInTag: (_t = pathConfig.includeVInTag) !== null && _t !== void 0 ? _t : defaultConfig.includeVInTag,
|
|
955
|
+
tagSeparator: (_u = pathConfig.tagSeparator) !== null && _u !== void 0 ? _u : defaultConfig.tagSeparator,
|
|
956
|
+
pullRequestTitlePattern: (_v = pathConfig.pullRequestTitlePattern) !== null && _v !== void 0 ? _v : defaultConfig.pullRequestTitlePattern,
|
|
957
|
+
separatePullRequests: (_w = pathConfig.separatePullRequests) !== null && _w !== void 0 ? _w : defaultConfig.separatePullRequests,
|
|
957
958
|
};
|
|
958
959
|
}
|
|
959
960
|
/**
|
|
@@ -173,12 +173,14 @@ class BranchFileCache {
|
|
|
173
173
|
* @returns {TreeEntry[]} The tree entries
|
|
174
174
|
*/
|
|
175
175
|
async fetchTree(sha) {
|
|
176
|
-
const { data: { tree }, } = await this.octokit.git.getTree({
|
|
176
|
+
const { data: { tree, truncated }, } = await this.octokit.git.getTree({
|
|
177
177
|
owner: this.repository.owner,
|
|
178
178
|
repo: this.repository.repo,
|
|
179
179
|
tree_sha: sha,
|
|
180
|
-
recursive: 'false',
|
|
181
180
|
});
|
|
181
|
+
if (truncated) {
|
|
182
|
+
logger_1.logger.warn(`file list for tree sha ${sha} is truncated`);
|
|
183
|
+
}
|
|
182
184
|
return tree;
|
|
183
185
|
}
|
|
184
186
|
/**
|
|
@@ -34,7 +34,7 @@ function generateMatchPattern(pullRequestTitlePattern) {
|
|
|
34
34
|
.replace('[', '\\[') // TODO: handle all regex escaping
|
|
35
35
|
.replace(']', '\\]')
|
|
36
36
|
.replace('${scope}', '(\\((?<branch>[\\w-./]+)\\))?')
|
|
37
|
-
.replace('${component}', ' ?(?<component>[\\w
|
|
37
|
+
.replace('${component}', ' ?(?<component>[\\w-./]*)?')
|
|
38
38
|
.replace('${version}', 'v?(?<version>[0-9].*)')
|
|
39
39
|
.replace('${branch}', '(?<branch>[\\w-./]+)?')}$`);
|
|
40
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-please",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.19.1",
|
|
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",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@octokit/types": "6.
|
|
40
|
+
"@octokit/types": "^6.1.0",
|
|
41
41
|
"@types/chai": "^4.1.7",
|
|
42
42
|
"@types/diff": "^5.0.2",
|
|
43
43
|
"@types/iarna__toml": "^2.0.1",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@types/sinon": "^10.0.0",
|
|
55
55
|
"@types/xmldom": "^0.1.31",
|
|
56
56
|
"@types/yargs": "^17.0.0",
|
|
57
|
+
"ajv": "^8.11.0",
|
|
57
58
|
"c8": "^7.0.0",
|
|
58
59
|
"chai": "^4.2.0",
|
|
59
60
|
"cross-env": "^7.0.0",
|