Skip to content

Commit

Permalink
feat: support GHE (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-r-k-matsumoto authored Dec 17, 2023
1 parent 260175b commit 3d834f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/index.js

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/octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { throttling } from "@octokit/plugin-throttling";
Octokit.plugin(throttling);

export const octokit = new Octokit({
baseUrl: process.env['GITHUB_API_URL'] || 'https://api.github.com',
auth: core.getInput("GITHUB_TOKEN") || process.env.GITHUB_TOKEN,
throttle: {
onSecondaryRateLimit: (_, options) => {
Expand Down

0 comments on commit 3d834f8

Please sign in to comment.