1
0
Fork 0

Add note about constructor options

pull/113/head
Jonathan Clem 2019-09-05 10:52:34 -04:00
parent ebace7edd3
commit 1c4866fa48
No known key found for this signature in database
GPG Key ID: 2BDAA3B545BBE67C
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ const { data: pullRequest } = await octokit.pulls.get({
console.log(pullRequest);
```
You can pass client options (except `auth`, which is handled by the token argument), as specified by [Octokit](https://octokit.github.io/rest.js/), as a second argument to the `GitHub` constructor.
You can also make GraphQL requests. See https://github.com/octokit/graphql.js for the API.
```js