From e533651251fc7caf58af1aa5f0718939f35cdfe5 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 --- packages/github/src/github.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/github/src/github.ts b/packages/github/src/github.ts index 5c85e40684..35b5f624de 100644 --- a/packages/github/src/github.ts +++ b/packages/github/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}`} })