Skip to content

Commit

Permalink
feat: add support for GitHub Enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Nov 20, 2023
1 parent fd1e826 commit 2c49865
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/octokit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/octokit.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export type CustomOctokit = InstanceType<typeof CustomOctokit>;
export function getOctokit(token: string) {
return new CustomOctokit({
auth: token,
baseUrl: process.env.GITHUB_API_URL ?? 'https://api.github.com',
});
}

0 comments on commit 2c49865

Please sign in to comment.