-
Notifications
You must be signed in to change notification settings - Fork 532
Expand file tree
/
Copy pathcli.js
More file actions
387 lines (367 loc) · 25.7 KB
/
cli.js
File metadata and controls
387 lines (367 loc) · 25.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
exports['CLI --help github-release 1'] = `
release-please github-release
create a release from a release PR/MR
Options:
--help Show help [boolean]
--version Show version number [boolean]
--debug print verbose errors (use only for local
debugging). [boolean] [default: false]
--trace print extra verbose errors (use only for local
debugging). [boolean] [default: false]
--plugin load plugin named release-please-<plugin-name>
[array] [default: []]
--token GitHub/GitLab token with repo write permissions
--api-url URL to use when making API requests
[string] [default: GitHub: https://api.github.com; GitLab:
https://gitlab.com/api/v4]
--host-url URL to use when building changelog and release
requests
[string] [default: GitHub: https://www.github.com; GitLab: https://gitlab.com]
--graphql-url URL to use when making GraphQL requests (ignored
for GitLab)
[string] [default: GitHub: https://api.github.com]
--provider Which provider to use (default 'github')
[string] [default: "github"]
--default-branch The branch to open release PR/MRs against and
tag releases on
[deprecated: use --target-branch instead] [string]
--target-branch The branch to open release PR/MRs against and
tag releases on [string]
--repo-url Repository URL to generate release for (e.g.
GitHub: <org/repo>, GitLab: <group/project>)
[required]
--dry-run Prepare but do not take action
[boolean] [default: false]
--include-v-in-tags include "v" in tag versions
[boolean] [default: true]
--monorepo-tags include library name in tags and release
branches [boolean] [default: false]
--pull-request-title-pattern Title pattern to make release PR [string]
--pull-request-header Header for release PR [string]
--pull-request-footer Footer for release PR [string]
--component-no-space release-please automatically adds \` \` (space) in
front of parsed \${component}. Should this be
disabled? [boolean] [default: false]
--path release from path other than root directory
[string]
--component name of component release is being minted for
[string]
--package-name name of package release is being minted for
[string]
--release-type what type of repo is a release being created
for?
[choices: "bazel", "dart", "dotnet-yoshi", "elixir", "expo", "go", "go-yoshi",
"helm", "java", "java-backport", "java-bom", "java-lts", "java-yoshi",
"java-yoshi-mono-repo", "krm-blueprint", "maven", "node", "ocaml", "php",
"php-yoshi", "python", "r", "ruby", "ruby-yoshi", "rust", "salesforce",
"sfdx", "simple", "terraform-module"]
--config-file where can the config file be found in the
project? [default: "release-please-config.json"]
--manifest-file where can the manifest file be found in the
project?
[default: ".release-please-manifest.json"]
--draft mark release as a draft. no tag is created but
tag_name and target_commitish are associated
with the release for future tag creation upon
"un-drafting" the release.
[boolean] [default: false]
--prerelease mark release that have prerelease versions as as
a prerelease on Github[boolean] [default: false]
--label comma-separated list of labels to remove to from
release PR [default: "autorelease: pending"]
--release-label set a pull request label other than
"autorelease: tagged"
[string] [default: "autorelease: tagged"]
--snapshot-label set a java snapshot pull request label other
than "autorelease: snapshot"
[string] [default: "autorelease: snapshot"]
`
exports['CLI --help manifest-pr 1'] = `
release-please manifest-pr
create a release-PR using a manifest file
Options:
--help Show help [boolean]
--version Show version number [boolean]
--debug print verbose errors (use only for local debugging).
[boolean] [default: false]
--trace print extra verbose errors (use only for local
debugging). [boolean] [default: false]
--plugin load plugin named release-please-<plugin-name>
[array] [default: []]
--token GitHub/GitLab token with repo write permissions
--api-url URL to use when making API requests
[string] [default: GitHub: https://api.github.com; GitLab:
https://gitlab.com/api/v4]
--host-url URL to use when building changelog and release requests
[string] [default: GitHub: https://www.github.com; GitLab: https://gitlab.com]
--graphql-url URL to use when making GraphQL requests (ignored for
GitLab)
[string] [default: GitHub: https://api.github.com]
--provider Which provider to use (default 'github')
[string] [default: "github"]
--default-branch The branch to open release PR/MRs against and tag
releases on
[deprecated: use --target-branch instead] [string]
--target-branch The branch to open release PR/MRs against and tag
releases on [string]
--repo-url Repository URL to generate release for (e.g. GitHub:
<org/repo>, GitLab: <group/project>) [required]
--dry-run Prepare but do not take action[boolean] [default: false]
--label comma-separated list of labels to add to from release PR
[default: "autorelease: pending"]
--skip-labeling skip application of labels to pull requests
[boolean] [default: false]
--fork should the PR be created from a fork
[boolean] [default: false]
--draft-pull-request mark pull request as a draft [boolean] [default: false]
--signoff Add Signed-off-by line at the end of the commit log
message using the user and email provided. (format "Name
<email@example.com>"). [string]
--config-file where can the config file be found in the project?
[default: "release-please-config.json"]
--manifest-file where can the manifest file be found in the project?
[default: ".release-please-manifest.json"]
`
exports['CLI --help manifest-release 1'] = `
release-please manifest-release
create releases/tags from last release-PR using a manifest file
Options:
--help Show help [boolean]
--version Show version number [boolean]
--debug print verbose errors (use only for local debugging).
[boolean] [default: false]
--trace print extra verbose errors (use only for local debugging).
[boolean] [default: false]
--plugin load plugin named release-please-<plugin-name>
[array] [default: []]
--token GitHub/GitLab token with repo write permissions
--api-url URL to use when making API requests
[string] [default: GitHub: https://api.github.com; GitLab:
https://gitlab.com/api/v4]
--host-url URL to use when building changelog and release requests
[string] [default: GitHub: https://www.github.com; GitLab: https://gitlab.com]
--graphql-url URL to use when making GraphQL requests (ignored for GitLab)
[string] [default: GitHub: https://api.github.com]
--provider Which provider to use (default 'github')
[string] [default: "github"]
--default-branch The branch to open release PR/MRs against and tag releases
on [deprecated: use --target-branch instead] [string]
--target-branch The branch to open release PR/MRs against and tag releases
on [string]
--repo-url Repository URL to generate release for (e.g. GitHub:
<org/repo>, GitLab: <group/project>) [required]
--dry-run Prepare but do not take action [boolean] [default: false]
--draft mark release as a draft. no tag is created but tag_name and
target_commitish are associated with the release for future
tag creation upon "un-drafting" the release.
[boolean] [default: false]
--prerelease mark release that have prerelease versions as as a
prerelease on Github [boolean] [default: false]
--label comma-separated list of labels to remove to from release PR
[default: "autorelease: pending"]
--release-label set a pull request label other than "autorelease: tagged"
[string] [default: "autorelease: tagged"]
--snapshot-label set a java snapshot pull request label other than
"autorelease: snapshot"
[string] [default: "autorelease: snapshot"]
--config-file where can the config file be found in the project?
[default: "release-please-config.json"]
--manifest-file where can the manifest file be found in the project?
[default: ".release-please-manifest.json"]
`
exports['CLI --help release 1'] = `
release-please release
create a release from a release PR/MR
Options:
--help Show help [boolean]
--version Show version number [boolean]
--debug print verbose errors (use only for local
debugging). [boolean] [default: false]
--trace print extra verbose errors (use only for local
debugging). [boolean] [default: false]
--plugin load plugin named release-please-<plugin-name>
[array] [default: []]
--token GitHub/GitLab token with repo write permissions
--api-url URL to use when making API requests
[string] [default: GitHub: https://api.github.com; GitLab:
https://gitlab.com/api/v4]
--host-url URL to use when building changelog and release
requests
[string] [default: GitHub: https://www.github.com; GitLab: https://gitlab.com]
--graphql-url URL to use when making GraphQL requests (ignored
for GitLab)
[string] [default: GitHub: https://api.github.com]
--provider Which provider to use (default 'github')
[string] [default: "github"]
--default-branch The branch to open release PR/MRs against and
tag releases on
[deprecated: use --target-branch instead] [string]
--target-branch The branch to open release PR/MRs against and
tag releases on [string]
--repo-url Repository URL to generate release for (e.g.
GitHub: <org/repo>, GitLab: <group/project>)
[required]
--dry-run Prepare but do not take action
[boolean] [default: false]
--include-v-in-tags include "v" in tag versions
[boolean] [default: true]
--monorepo-tags include library name in tags and release
branches [boolean] [default: false]
--pull-request-title-pattern Title pattern to make release PR [string]
--pull-request-header Header for release PR [string]
--pull-request-footer Footer for release PR [string]
--component-no-space release-please automatically adds \` \` (space) in
front of parsed \${component}. Should this be
disabled? [boolean] [default: false]
--path release from path other than root directory
[string]
--component name of component release is being minted for
[string]
--package-name name of package release is being minted for
[string]
--release-type what type of repo is a release being created
for?
[choices: "bazel", "dart", "dotnet-yoshi", "elixir", "expo", "go", "go-yoshi",
"helm", "java", "java-backport", "java-bom", "java-lts", "java-yoshi",
"java-yoshi-mono-repo", "krm-blueprint", "maven", "node", "ocaml", "php",
"php-yoshi", "python", "r", "ruby", "ruby-yoshi", "rust", "salesforce",
"sfdx", "simple", "terraform-module"]
--config-file where can the config file be found in the
project? [default: "release-please-config.json"]
--manifest-file where can the manifest file be found in the
project?
[default: ".release-please-manifest.json"]
--draft mark release as a draft. no tag is created but
tag_name and target_commitish are associated
with the release for future tag creation upon
"un-drafting" the release.
[boolean] [default: false]
--prerelease mark release that have prerelease versions as as
a prerelease on Github[boolean] [default: false]
--label comma-separated list of labels to remove to from
release PR [default: "autorelease: pending"]
--release-label set a pull request label other than
"autorelease: tagged"
[string] [default: "autorelease: tagged"]
--snapshot-label set a java snapshot pull request label other
than "autorelease: snapshot"
[string] [default: "autorelease: snapshot"]
`
exports['CLI --help release-pr 1'] = `
release-please release-pr
create or update a PR representing the next release
Options:
--help Show help [boolean]
--version Show version number [boolean]
--debug print verbose errors (use only for local
debugging). [boolean] [default: false]
--trace print extra verbose errors (use only for
local debugging). [boolean] [default: false]
--plugin load plugin named
release-please-<plugin-name>
[array] [default: []]
--token GitHub/GitLab token with repo write
permissions
--api-url URL to use when making API requests
[string] [default: GitHub: https://api.github.com; GitLab:
https://gitlab.com/api/v4]
--host-url URL to use when building changelog and
release requests
[string] [default: GitHub: https://www.github.com; GitLab: https://gitlab.com]
--graphql-url URL to use when making GraphQL requests
(ignored for GitLab)
[string] [default: GitHub: https://api.github.com]
--provider Which provider to use (default 'github')
[string] [default: "github"]
--default-branch The branch to open release PR/MRs against
and tag releases on
[deprecated: use --target-branch instead] [string]
--target-branch The branch to open release PR/MRs against
and tag releases on [string]
--repo-url Repository URL to generate release for (e.g.
GitHub: <org/repo>, GitLab: <group/project>)
[required]
--dry-run Prepare but do not take action
[boolean] [default: false]
--release-as override the semantically determined release
version [string]
--bump-minor-pre-major should we bump the semver minor prior to the
first major release
[boolean] [default: false]
--bump-patch-for-minor-pre-major should we bump the semver patch instead of
the minor for non-breaking changes prior to
the first major release
[boolean] [default: false]
--prerelease-type type of the prerelease, e.g., alpha [string]
--extra-files extra files for the strategy to consider
[string]
--version-file path to version file to update, e.g.,
version.rb [string]
--snapshot is it a snapshot (or pre-release) being
generated? [boolean] [default: false]
--versioning-strategy strategy used for bumping versions
[choices: "always-bump-major", "always-bump-minor", "always-bump-patch",
"default", "prerelease", "service-pack"] [default: "default"]
--changelog-path where can the CHANGELOG be found in the
project? [string] [default: "CHANGELOG.md"]
--changelog-type type of changelog to build
[choices: "default", "github"]
--changelog-sections comma-separated list of scopes to include in
the changelog [string]
--changelog-host host for hyperlinks in the changelog[string]
--last-package-version last version # that package was released as
[deprecated: use --latest-tag-version instead] [string]
--latest-tag-version Override the detected latest tag version
[string]
--latest-tag-sha Override the detected latest tag SHA[string]
--latest-tag-name Override the detected latest tag name
[string]
--date-format format in strftime format for updating dates
[string]
--label comma-separated list of labels to add to
from release PR
[default: "autorelease: pending"]
--skip-labeling skip application of labels to pull requests
[boolean] [default: false]
--fork should the PR be created from a fork
[boolean] [default: false]
--draft-pull-request mark pull request as a draft
[boolean] [default: false]
--signoff Add Signed-off-by line at the end of the
commit log message using the user and email
provided. (format "Name
<email@example.com>"). [string]
--include-v-in-tags include "v" in tag versions
[boolean] [default: true]
--monorepo-tags include library name in tags and release
branches [boolean] [default: false]
--pull-request-title-pattern Title pattern to make release PR [string]
--pull-request-header Header for release PR [string]
--pull-request-footer Footer for release PR [string]
--component-no-space release-please automatically adds \` \`
(space) in front of parsed \${component}.
Should this be disabled?
[boolean] [default: false]
--path release from path other than root directory
[string]
--component name of component release is being minted
for [string]
--package-name name of package release is being minted for
[string]
--release-type what type of repo is a release being created
for?
[choices: "bazel", "dart", "dotnet-yoshi", "elixir", "expo", "go", "go-yoshi",
"helm", "java", "java-backport", "java-bom", "java-lts", "java-yoshi",
"java-yoshi-mono-repo", "krm-blueprint", "maven", "node", "ocaml", "php",
"php-yoshi", "python", "r", "ruby", "ruby-yoshi", "rust", "salesforce",
"sfdx", "simple", "terraform-module"]
--config-file where can the config file be found in the
project?
[default: "release-please-config.json"]
--manifest-file where can the manifest file be found in the
project?
[default: ".release-please-manifest.json"]
`
exports['CLI handleError handles an error 1'] = [
"command foobar failed with status 404"
]