Skip to content

Commit 260f365

Browse files
authored
fix: Fix Octokit GitHub client. (#30)
* fix: Fix Octokit GitHub client. * Try again.
1 parent 5824946 commit 260f365

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/nimbus/src/helpers/createGitHubClient.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import { Octokit } from '@octokit/rest';
1+
import Rest from '@octokit/rest';
22
import { VERSION } from '../constants';
33

4-
export default function createGitHubClient(token?: string): Octokit {
4+
const { Octokit } = Rest;
5+
6+
export default function createGitHubClient(token?: string): Rest.Octokit {
57
const { GITHUB_TOKEN, GHE_API_URL, GHE_VERSION } = process.env;
6-
const options: Octokit.Options = {
8+
const options: Rest.Octokit.Options = {
79
userAgent: `Nimbus v${VERSION}`,
810
};
911

0 commit comments

Comments
 (0)