Skip to content

Commit e533651

Browse files
committed
Accept Octokit.Options in the GitHub constructor
1 parent eb4c328 commit e533651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/github/src/github.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export class GitHub extends Octokit {
1414
variables?: Variables
1515
) => Promise<GraphQlQueryResponse>
1616

17-
constructor(token: string) {
18-
super({auth: `token ${token}`})
17+
constructor(token: string, opts: Omit<Octokit.Options, 'auth'> = {}) {
18+
super({...opts, auth: `token ${token}`})
1919
this.graphql = defaults({
2020
headers: {authorization: `token ${token}`}
2121
})

0 commit comments

Comments
 (0)