release-please 17.8.0 → 17.10.0

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.
Files changed (41) hide show
  1. package/README.md +1 -1
  2. package/build/src/github-api.d.ts +1 -1
  3. package/build/src/github.d.ts +1 -1
  4. package/build/src/github.js +1 -1
  5. package/build/src/index.d.ts +1 -1
  6. package/build/src/index.js +1 -1
  7. package/build/src/local-github.d.ts +1 -1
  8. package/build/src/local-github.js +1 -1
  9. package/build/src/manifest.js +22 -20
  10. package/build/src/plugins/linked-versions.js +1 -1
  11. package/build/src/strategies/base.js +8 -0
  12. package/build/src/strategies/go-librarian.d.ts +2 -0
  13. package/build/src/strategies/go-librarian.js +15 -1
  14. package/build/src/updaters/librarian-yaml.d.ts +7 -0
  15. package/build/src/updaters/librarian-yaml.js +47 -21
  16. package/build/src/util/branch-name.d.ts +1 -0
  17. package/build/src/util/branch-name.js +9 -0
  18. package/build/src/util/code-suggester/default-options-handler.d.ts +10 -0
  19. package/build/src/util/code-suggester/default-options-handler.js +45 -0
  20. package/build/src/util/code-suggester/errors.d.ts +4 -0
  21. package/build/src/util/code-suggester/errors.js +24 -0
  22. package/build/src/util/code-suggester/github/branch.d.ts +45 -0
  23. package/build/src/util/code-suggester/github/branch.js +118 -0
  24. package/build/src/util/code-suggester/github/commit-and-push.d.ts +51 -0
  25. package/build/src/util/code-suggester/github/commit-and-push.js +141 -0
  26. package/build/src/util/code-suggester/github/create-commit.d.ts +20 -0
  27. package/build/src/util/code-suggester/github/create-commit.js +60 -0
  28. package/build/src/util/code-suggester/github/fork.d.ts +15 -0
  29. package/build/src/util/code-suggester/github/fork.js +48 -0
  30. package/build/src/util/code-suggester/github/labels.d.ts +14 -0
  31. package/build/src/util/code-suggester/github/labels.js +42 -0
  32. package/build/src/util/code-suggester/github/open-pull-request.d.ts +16 -0
  33. package/build/src/util/code-suggester/github/open-pull-request.js +56 -0
  34. package/build/src/util/code-suggester/index.d.ts +28 -0
  35. package/build/src/util/code-suggester/index.js +110 -0
  36. package/build/src/util/code-suggester/logger.d.ts +4 -0
  37. package/build/src/util/code-suggester/logger.js +37 -0
  38. package/build/src/util/code-suggester/types.d.ts +109 -0
  39. package/build/src/util/code-suggester/types.js +30 -0
  40. package/build/src/util/pull-request-title.js +4 -4
  41. package/package.json +5 -4
@@ -0,0 +1,109 @@
1
+ import { CreateCommitOptions } from './github/create-commit';
2
+ export type FileMode = '100644' | '100755' | '040000' | '160000' | '120000';
3
+ /**
4
+ * GitHub definition of tree
5
+ */
6
+ export interface TreeObject {
7
+ path: string;
8
+ mode: FileMode;
9
+ type: 'blob' | 'tree' | 'commit';
10
+ sha?: string | null;
11
+ content?: string;
12
+ }
13
+ /**
14
+ * The content and the mode of a file.
15
+ * Default file mode is a text file which has code '100644'.
16
+ * If `content` is not null, then `content` must be the entire file content.
17
+ * See https://developer.github.com/v3/git/trees/#tree-object for details on mode.
18
+ */
19
+ export declare class FileData {
20
+ readonly mode: FileMode;
21
+ readonly content: string | null;
22
+ constructor(content: string | null, mode?: FileMode);
23
+ }
24
+ /**
25
+ * The map of a path to its content data.
26
+ * The content must be the entire file content.
27
+ */
28
+ export type Changes = Map<string, FileData>;
29
+ /**
30
+ * The domain of a repository
31
+ */
32
+ export interface RepoDomain {
33
+ repo: string;
34
+ owner: string;
35
+ }
36
+ /**
37
+ * The domain for a branch
38
+ */
39
+ export interface BranchDomain extends RepoDomain {
40
+ branch: string;
41
+ }
42
+ /**
43
+ * The descriptive properties for any entity
44
+ */
45
+ export interface Description {
46
+ title: string;
47
+ body: string;
48
+ }
49
+ /**
50
+ * The user options for creating GitHub PRs
51
+ */
52
+ export interface CreatePullRequestUserOptions extends CreateCommitOptions {
53
+ upstreamOwner: string;
54
+ upstreamRepo: string;
55
+ message: string;
56
+ description: string;
57
+ title: string;
58
+ branch?: string;
59
+ force?: boolean;
60
+ fork?: boolean;
61
+ primary?: string;
62
+ maintainersCanModify?: boolean;
63
+ labels?: string[];
64
+ retry?: number;
65
+ draft?: boolean;
66
+ logger?: Logger;
67
+ filesPerCommit?: number;
68
+ }
69
+ /**
70
+ * GitHub data needed for creating a PR
71
+ */
72
+ export interface CreatePullRequest {
73
+ upstreamOwner: string;
74
+ upstreamRepo: string;
75
+ message: string;
76
+ description: string;
77
+ title: string;
78
+ branch: string;
79
+ force: boolean;
80
+ primary: string;
81
+ maintainersCanModify: boolean;
82
+ filesPerCommit?: number;
83
+ }
84
+ interface LogFn {
85
+ <T extends object>(obj: T, msg?: string, ...args: any[]): void;
86
+ (msg: string, ...args: any[]): void;
87
+ }
88
+ export interface Logger {
89
+ error: LogFn;
90
+ warn: LogFn;
91
+ info: LogFn;
92
+ debug: LogFn;
93
+ trace: LogFn;
94
+ }
95
+ export interface UserData {
96
+ name: string;
97
+ email: string;
98
+ }
99
+ export interface CommitData {
100
+ message: string;
101
+ tree: string;
102
+ parents: string[];
103
+ author?: UserData;
104
+ committer?: UserData;
105
+ }
106
+ export interface CommitSigner {
107
+ generateSignature(commit: CommitData): Promise<string>;
108
+ }
109
+ export {};
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ // Copyright 2026 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FileData = void 0;
17
+ /**
18
+ * The content and the mode of a file.
19
+ * Default file mode is a text file which has code '100644'.
20
+ * If `content` is not null, then `content` must be the entire file content.
21
+ * See https://developer.github.com/v3/git/trees/#tree-object for details on mode.
22
+ */
23
+ class FileData {
24
+ constructor(content, mode = '100644') {
25
+ this.mode = mode;
26
+ this.content = content;
27
+ }
28
+ }
29
+ exports.FileData = FileData;
30
+ //# sourceMappingURL=types.js.map
@@ -32,10 +32,10 @@ function generateMatchPattern(pullRequestTitlePattern, componentNoSpace, logger
32
32
  pullRequestTitlePattern.search(/\$\{version\}/) === -1)
33
33
  logger.warn("pullRequestTitlePattern miss the part of '${version}'");
34
34
  return new RegExp(`^${(pullRequestTitlePattern || DEFAULT_PR_TITLE_PATTERN)
35
- .replace('[', '\\[') // TODO: handle all regex escaping
36
- .replace(']', '\\]')
37
- .replace('(', '\\(')
38
- .replace(')', '\\)')
35
+ .replace(/\[/g, '\\[') // TODO: handle all regex escaping
36
+ .replace(/\]/g, '\\]')
37
+ .replace(/\(/g, '\\(')
38
+ .replace(/\)/g, '\\)')
39
39
  .replace('${scope}', '(\\((?<branch>[\\w-./]+)\\))?')
40
40
  .replace('${component}', componentNoSpace === true
41
41
  ? '?(?<component>@?[\\w-./]*)?'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "17.8.0",
3
+ "version": "17.10.0",
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",
@@ -39,6 +39,7 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@octokit/types": "^9.0.0",
42
+ "@types/async-retry": "^1.4.9",
42
43
  "@types/chai": "^4.1.7",
43
44
  "@types/diff": "^5.0.2",
44
45
  "@types/iarna__toml": "^2.0.1",
@@ -46,7 +47,7 @@
46
47
  "@types/js-yaml": "^4.0.0",
47
48
  "@types/jsonpath": "^0.2.0",
48
49
  "@types/mocha": "^10.0.0",
49
- "@types/node": "^18.0.0",
50
+ "@types/node": "^22.0.0",
50
51
  "@types/npmlog": "^7.0.0",
51
52
  "@types/semver": "^7.0.0",
52
53
  "@types/sinon": "^17.0.0",
@@ -75,8 +76,8 @@
75
76
  "@octokit/rest": "^20.1.1",
76
77
  "@types/npm-package-arg": "^6.1.0",
77
78
  "@xmldom/xmldom": "^0.8.4",
79
+ "async-retry": "^1.3.3",
78
80
  "chalk": "^4.0.0",
79
- "code-suggester": "^5.0.0",
80
81
  "conventional-changelog-conventionalcommits": "^6.0.0",
81
82
  "conventional-changelog-writer": "^6.0.0",
82
83
  "conventional-commits-filter": "^3.0.0",
@@ -99,7 +100,7 @@
99
100
  "yargs": "^17.0.0"
100
101
  },
101
102
  "engines": {
102
- "node": ">=20.0.0"
103
+ "node": ">=22.0.0"
103
104
  },
104
105
  "overrides": {
105
106
  "tmp": "0.2.6",