You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,6 @@ variation of the [Angular preset][angular-preset] (seen
39
39
1. If `--install` was provided (or `install: true` set in the config file) then
40
40
run the `install` command of the package manager (`npm install`,
41
41
`yarn install`, or `pnpm install`) you used to call this CLI.
42
-
43
42
-**Important:** when you install `@favware/cliff-jumper` globally this will
44
43
always default to `npm` because of how NodeJS works. Therefore, if you wish
45
44
for it to be `yarn` or `npm` make sure to add it as dev dependency to your
@@ -169,14 +168,12 @@ Options:
169
168
as latest an this option will essentially be ignored.
170
169
--github-release-name-template [string] Note that this is only supported if"--git-host-variant" is set to "github"
171
170
A GitHub release name template to use. Defaults to an empty string, which means GitHub will use the tag name as the release name.
172
-
You can use "{{new-version}}"in your template which will be dynamically replaced with whatever the new version is that will be
173
-
published.
174
-
You can use "{{org}}"in your template, this will be replaced with the org provided through "-o", "--org" or the same value setin
175
-
your config file.
176
-
You can use "{{name}}"in your template, this will be replaced with the name provided through "-n", "--name" or the same value setin
177
-
your config file.
178
-
You can use "{{full-name}}"in your template, this will be replaced "{{name}}" (when "org" is not provided), or "@{{org}}/{{name}}"
179
-
(when "org" is provided).
171
+
You can use "{{new-version}}"in your template which will be dynamically replaced with whatever the new version is that will be published.
172
+
You can use "{{org}}"in your template, this will be replaced with the org provided through "-o", "--org" or the same value setin your config file.
173
+
You can use "{{name}}"in your template, this will be replaced with the name provided through "-n", "--name" or the same value setin your config file.
174
+
You can use "{{full-name}}"in your template, this will be replaced "{{name}}" (when "org" is not provided), or "@{{org}}/{{name}}" (when "org" is provided).
175
+
--github-base-url [string] Note that this is only supported if"--git-host-variant" is set to "github"
176
+
The base URL for the GitHub API. Defaults to "https://api.github.com".
180
177
-v, --verbose Whether to print verbose information (default: false)
181
178
-h, --help display helpforcommand
182
179
```
@@ -212,6 +209,7 @@ package). It should be named `.cliff-jumperrc`, optionally suffixed with
212
209
- `--github-release-pre-release` maps to `githubReleasePrerelease`
213
210
- `--github-release-latest` maps to `githubReleaseLatest`
214
211
- `--github-release-name-template` maps to `githubReleaseNameTemplate`
212
+
- `--github-base-url` maps to `githubBaseUrl`
215
213
- `--verbose` maps to `verbose`
216
214
217
215
When using `.cliff-jumperrc` or `.cliff-jumperrc.json` as your config file you
@@ -301,6 +299,7 @@ This library has opinionated defaults for its options. These are as follows:
301
299
- `--github-release-pre-release` will default to `false`.
302
300
- `--github-release-latest` will default to `true`.
303
301
- `--github-release-name-template` will default to an empty string.
302
+
- `--github-base-url` will default to `https://api.github.com`.
304
303
- `--verbose` will default to `false`.
305
304
306
305
### Merging of config file, defaults and CLI provided flags
Copy file name to clipboardExpand all lines: assets/cliff-jumper.schema.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,11 @@
116
116
"description": "Note that this is only supported if \"--git-host-variant\" is set to \"github\"\nA custom release name template to use.\n\nYou can use \"{{new-version}}\" in your template which will be dynamically replaced with whatever the new version is that will be published.\n\nYou can use \"{{name}}\" in your template, this will be replaced with the name provided through \"-n\", \"--name\" or the same value set in your config file.\n\nYou can use \"{{full-name}}\" in your template, this will be replaced \"{{name}}\" (when \"org\" is not provided), or \"@{{org}}/{{name}}\" (when \"org\" is provided).",
117
117
"type": "string"
118
118
},
119
+
"githubBaseUrl": {
120
+
"description": "Note that this is only supported if \"--git-host-variant\" is set to \"github\"\nA custom GitHub base URL to use. This can be used for GHEC or GHES instances. This should be the full API URL, for example \"https://api.github.com\" for github.com, or \"https://octokit.ghe.com/api/v3\" for a GHEC instance.",
121
+
"type": "string",
122
+
"default": "https://api.github.com"
123
+
},
119
124
"verbose": {
120
125
"description": "Whether to print verbose information",
Copy file name to clipboardExpand all lines: src/cli.ts
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,13 @@ const command = new Command()
174
174
'You can use "{{full-name}}" in your template, this will be replaced "{{name}}" (when "org" is not provided), or "@{{org}}/{{name}}" (when "org" is provided).'
175
175
].join('\n')
176
176
)
177
+
.option(
178
+
'--github-base-url [string]',
179
+
[
180
+
'Note that this is only supported if "--git-host-variant" is set to "github"',
181
+
'The base URL for the GitHub API. Defaults to "https://api.github.com".'
182
+
].join('\n')
183
+
)
177
184
.option('-v, --verbose','Whether to print verbose information',false);
'You can only use --github-release-draft, --github-release-latest, --github-release-name-template, and --github-release-pre-release when both --github-release and --push-tag are provided'
130
+
'You can only use --github-release-draft, --github-release-latest, --github-release-name-template, --github-base-url, and --github-release-pre-release when both --github-release and --push-tag are provided'
0 commit comments