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
Add a `--url` option to the CLI to allow users of
`conventional-github-releaser` to provide a custom URL for GitHub,
which can be used to specify the API endpoint for an on-premise GitHub
Enterprise instance.
```bash
conventional-github-releaser --url https://api.github.com
```
Replace the `github` package with `gh-got` to simplify the way we
interact with GitHub's API. Posting new releases is the only part
of the GitHub API that we need to interact with, and `github` is a litte
heavy for our purposes.
Default to `https://api.github.com` as the endpoint so as to maintain
the behavior supported by `github` when issuing requests to the
GitHub API. The default URL is technically set by `gh-got`, so no
further work is required on our part.
BREAKING CHANGE:
The `github` package has been replaced by `gh-got`.
Options supported by `github` (https://www.npmjs.com/package/github)
can no longer be provided through the `auth` parameter to
`conventional-github-releaser`.
To set a custom URL for GitHub please do one of the following:
* If calling the `conventional-github-releaser` API, pass a URL as the
`url` property of the `auth` parameter to
`conventional-github-releaser`. The URL should be the fully qualified
domain and path of the GitHub API, such as `https://api.github.com` or
`https://api.github.example.com`.
* If calling the `conventional-github-releaser` CLI, either pass a URL
using the `--url` option, or set the `CONVENTIONAL_GITHUB_URL`
environment variable.
* If calling the CLI or API, set the `GITHUB_ENDPOINT` environment
variable supported by the underlying `gh-got` library - https://www.npmjs.com/package/gh-got#endpoint
[](https://gitter.im/conventional-changelog/conventional-github-releaser?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
7
5
8
6
> Make a new GitHub release from git metadata.
@@ -57,10 +55,10 @@ Please use this [gist](https://gist.github.com/stevemao/280ef22ee861323993a0) to
57
55
58
56
## Why
59
57
60
-
- Based on [conventional-changelog](https://github.com/ajoslin/conventional-changelog) but GitHub releases are more elegant.
58
+
- Based on [conventional-changelog](https://www.npmjs.com/package/conventional-changelog) but GitHub releases are more elegant.
61
59
- Easy fully automate changelog generation. You could still add more points on top of it.
62
-
- Detecting prerelease based on semver, ignoring reverted commits, templating with [handlebars.js](https://github.com/wycats/handlebars.js) and links to references, etc. Open an [issue](../../issues/new) if you want more reasonable features.
63
-
- Intelligently setup defaults but yet fully configurable with presets of [popular projects](https://github.com/ajoslin/conventional-changelog#preset).
60
+
- Detecting prerelease based on semver, ignoring reverted commits, templating with [handlebars.js](https://www.npmjs.com/package/handlebars) and links to references, etc. Open an [issue](../../issues/new) if you want more reasonable features.
61
+
- Intelligently setup defaults but yet fully configurable with presets of [popular projects](https://www.npmjs.com/package/conventional-changelog#preset).
64
62
- Everything internally or externally is pluggable.
An auth object passed to [node-github](https://github.com/mikedeboer/node-github#authentication).
90
+
An object that may contain the following properties:
91
+
92
+
* token - A [GitHub Personal Token](https://github.com/blog/1509-personal-api-tokens) with `repo`[scope permissions](https://developer.github.com/enterprise/2.11/apps/building-integrations/setting-up-and-registering-oauth-apps/about-scopes-for-oauth-apps/).
93
+
* url - The fully qualified domain name for the GitHub instance (such as `https://api.github.com`).
0 commit comments