Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Enterprise Usage? #6

Closed
NateZimmer opened this issue Feb 20, 2019 · 1 comment · May be fixed by retorquere/zotero-bulk-mas-import#6 or retorquere/zotero-creator-metaphone#5
Closed

Github Enterprise Usage? #6

NateZimmer opened this issue Feb 20, 2019 · 1 comment · May be fixed by retorquere/zotero-bulk-mas-import#6 or retorquere/zotero-creator-metaphone#5

Comments

@NateZimmer
Copy link

So github enterprise would have a unique URL such as

https://my_company.com/api/v3/[normal_request_header]

Should be an easy feature if not already there to add support to pass a custom URL as an argument to support Github Enterprise

@cheton
Copy link
Owner

cheton commented Feb 21, 2019

The baseUrl option allows you specifying a custom URL for GitHub Enterprise support:
https://github.com/octokit/rest.js#client-options

Do you mind creating a pull request to add a --baseurl option?

It might look something like this:

program
    .option('--baseurl <baseurl>', 'API endpoint', 'https://api.github.com')
const octokit = new Octokit({
    baseUrl: program.baseurl,
    // other options
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants