release-please 16.5.0 → 16.5.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/build/src/github.js
CHANGED
|
@@ -43,12 +43,14 @@ class GitHub {
|
|
|
43
43
|
this.getCommitFiles = wrapAsync(async (sha) => {
|
|
44
44
|
this.logger.debug(`Backfilling file list for commit: ${sha}`);
|
|
45
45
|
const files = [];
|
|
46
|
-
for await (const resp of this.octokit.paginate.iterator(
|
|
46
|
+
for await (const resp of this.octokit.paginate.iterator('GET /repos/{owner}/{repo}/commits/{ref}', {
|
|
47
47
|
owner: this.repository.owner,
|
|
48
48
|
repo: this.repository.repo,
|
|
49
49
|
ref: sha,
|
|
50
50
|
})) {
|
|
51
|
-
|
|
51
|
+
// Paginate plugin doesn't have types for listing files on a commit
|
|
52
|
+
const data = resp.data;
|
|
53
|
+
for (const f of data.files || []) {
|
|
52
54
|
if (f.filename) {
|
|
53
55
|
files.push(f.filename);
|
|
54
56
|
}
|
|
@@ -711,7 +713,7 @@ class GitHub {
|
|
|
711
713
|
MERGED: 'closed',
|
|
712
714
|
};
|
|
713
715
|
let results = 0;
|
|
714
|
-
for await (const { data: pulls } of this.octokit.paginate.iterator(
|
|
716
|
+
for await (const { data: pulls } of this.octokit.paginate.iterator('GET /repos/{owner}/{repo}/pulls', {
|
|
715
717
|
state: statusMap[status],
|
|
716
718
|
owner: this.repository.owner,
|
|
717
719
|
repo: this.repository.repo,
|
|
@@ -921,7 +923,7 @@ class GitHub {
|
|
|
921
923
|
async *tagIterator(options = {}) {
|
|
922
924
|
const maxResults = options.maxResults || Number.MAX_SAFE_INTEGER;
|
|
923
925
|
let results = 0;
|
|
924
|
-
for await (const response of this.octokit.paginate.iterator(
|
|
926
|
+
for await (const response of this.octokit.paginate.iterator('GET /repos/{owner}/{repo}/tags', {
|
|
925
927
|
owner: this.repository.owner,
|
|
926
928
|
repo: this.repository.repo,
|
|
927
929
|
})) {
|
package/build/src/index.d.ts
CHANGED
package/build/src/index.js
CHANGED
|
@@ -36,6 +36,6 @@ Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () {
|
|
|
36
36
|
exports.configSchema = require('../../schemas/config.json');
|
|
37
37
|
exports.manifestSchema = require('../../schemas/manifest.json');
|
|
38
38
|
// x-release-please-start-version
|
|
39
|
-
exports.VERSION = '16.5.
|
|
39
|
+
exports.VERSION = '16.5.1';
|
|
40
40
|
// x-release-please-end
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -54,10 +54,10 @@ var SUPPORTED_RANGE_PREFIXES;
|
|
|
54
54
|
(function (SUPPORTED_RANGE_PREFIXES) {
|
|
55
55
|
SUPPORTED_RANGE_PREFIXES["CARET"] = "^";
|
|
56
56
|
SUPPORTED_RANGE_PREFIXES["TILDE"] = "~";
|
|
57
|
-
SUPPORTED_RANGE_PREFIXES["GREATER_THAN"] = ">";
|
|
58
|
-
SUPPORTED_RANGE_PREFIXES["LESS_THAN"] = "<";
|
|
59
57
|
SUPPORTED_RANGE_PREFIXES["EQUAL_OR_GREATER_THAN"] = ">=";
|
|
60
58
|
SUPPORTED_RANGE_PREFIXES["EQUAL_OR_LESS_THAN"] = "<=";
|
|
59
|
+
SUPPORTED_RANGE_PREFIXES["GREATER_THAN"] = ">";
|
|
60
|
+
SUPPORTED_RANGE_PREFIXES["LESS_THAN"] = "<";
|
|
61
61
|
})(SUPPORTED_RANGE_PREFIXES || (SUPPORTED_RANGE_PREFIXES = {}));
|
|
62
62
|
function detectRangePrefix(version) {
|
|
63
63
|
return (Object.values(SUPPORTED_RANGE_PREFIXES).find(supportedRangePrefix => version.startsWith(supportedRangePrefix)) || '');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-please",
|
|
3
|
-
"version": "16.5.
|
|
3
|
+
"version": "16.5.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",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@conventional-commits/parser": "^0.4.1",
|
|
70
|
-
"@google-automations/git-file-utils": "^
|
|
70
|
+
"@google-automations/git-file-utils": "^2.0.0",
|
|
71
71
|
"@iarna/toml": "^3.0.0",
|
|
72
72
|
"@octokit/graphql": "^5.0.0",
|
|
73
73
|
"@octokit/request": "^6.0.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"typescript": "^4.6.4",
|
|
95
95
|
"unist-util-visit": "^2.0.3",
|
|
96
96
|
"unist-util-visit-parents": "^3.1.1",
|
|
97
|
-
"xpath": "^0.0.
|
|
97
|
+
"xpath": "^0.0.34",
|
|
98
98
|
"yaml": "^2.2.2",
|
|
99
99
|
"yargs": "^17.0.0"
|
|
100
100
|
},
|