diff --git a/docs/options.md b/docs/options.md index 8e5c59f4..33ceb841 100644 --- a/docs/options.md +++ b/docs/options.md @@ -16,6 +16,7 @@ To pass it to the `GithubReleaseNotes` class, in the [configuration file](#confi | Command | Options | Description | Default | | ------- | ------- | ----------- | ------- | +| `api-url` | **Optional** | Override the GitHub API URL, allows **gren** to connect to a private [GHE](https://enterprise.github.com/) installation. _e.g. `https://my-enterprise-domain.com/api/v3`_ | `null` | | `username` | **Required** | The username of the repo _e.g. `github-tools`_ | `null` | | `repo` | **Required** | The repository name _e.g. `github-release-notes`_ | `null` | | `action`| `release` `changelog` | The **gren** action to run. _(see details below for changelog generator)_ | `release` | diff --git a/src/gren.js b/src/gren.js index 8b3bf9ef..230f06c0 100644 --- a/src/gren.js +++ b/src/gren.js @@ -861,7 +861,7 @@ GithubReleaseNotes.prototype.init = function() { var githubApi = new Github({ token: gren.options.token - }); + }, gren.options.apiUrl); gren.repo = githubApi.getRepo(gren.options.username, gren.options.repo); gren.issues = githubApi.getIssues(gren.options.username, gren.options.repo);