We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5824946 commit 260f365Copy full SHA for 260f365
packages/nimbus/src/helpers/createGitHubClient.ts
@@ -1,9 +1,11 @@
1
-import { Octokit } from '@octokit/rest';
+import Rest from '@octokit/rest';
2
import { VERSION } from '../constants';
3
4
-export default function createGitHubClient(token?: string): Octokit {
+const { Octokit } = Rest;
5
+
6
+export default function createGitHubClient(token?: string): Rest.Octokit {
7
const { GITHUB_TOKEN, GHE_API_URL, GHE_VERSION } = process.env;
- const options: Octokit.Options = {
8
+ const options: Rest.Octokit.Options = {
9
userAgent: `Nimbus v${VERSION}`,
10
};
11
0 commit comments