From 54c13284193e7921fda4f913e3637b20f6aaa5e1 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Thu, 5 Sep 2019 09:54:27 -0400 Subject: [PATCH] Accept Octokit.Options in the GitHub constructor --- src/github.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.ts b/src/github.ts index 5c85e40..35b5f62 100644 --- a/src/github.ts +++ b/src/github.ts @@ -14,8 +14,8 @@ export class GitHub extends Octokit { variables?: Variables ) => Promise - constructor(token: string) { - super({auth: `token ${token}`}) + constructor(token: string, opts: Omit = {}) { + super({...opts, auth: `token ${token}`}) this.graphql = defaults({ headers: {authorization: `token ${token}`} })