Skip to content

Commit

Permalink
fix: Fix Octokit GitHub client. (#30)
Browse files Browse the repository at this point in the history
* fix: Fix Octokit GitHub client.

* Try again.
  • Loading branch information
milesj authored Mar 24, 2020
1 parent 5824946 commit 260f365
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/nimbus/src/helpers/createGitHubClient.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { Octokit } from '@octokit/rest';
import Rest from '@octokit/rest';
import { VERSION } from '../constants';

export default function createGitHubClient(token?: string): Octokit {
const { Octokit } = Rest;

export default function createGitHubClient(token?: string): Rest.Octokit {
const { GITHUB_TOKEN, GHE_API_URL, GHE_VERSION } = process.env;
const options: Octokit.Options = {
const options: Rest.Octokit.Options = {
userAgent: `Nimbus v${VERSION}`,
};

Expand Down

0 comments on commit 260f365

Please sign in to comment.